Validates one or more SBML files.
#include <stdio.h>
int
main (int argc, char *argv[])
{
const char *filename;
#ifdef __BORLANDC__
unsigned long start, stop;
#else
unsigned long long start, stop;
#endif
unsigned long size;
unsigned int errors = 0;
if (argc != 2)
{
printf("Usage: validateSBML filename\n");
return 2;
}
filename = argv[1];
start = getCurrentMillis();
stop = getCurrentMillis();
size = getFileSize(filename);
printf( "\n" );
printf( " filename: %s\n" , filename );
printf( " file size: %lu\n", size );
printf( " read time (ms): %llu\n", stop - start );
printf( " error(s): %u\n" , errors );
printf("\n");
return errors;
}