checking if a file is a valid STEP file from an external program

Does anybody know to write a program in C that opens a file and checks if it is a valid STEP file?

Peter Djalaliev's picture

...know how to write...