A simple command-line program that reads an SBML file and prints some statistics about it.
#include <stdio.h>
int
main (int argc, char *argv[])
{
const char *filename;
#ifdef __BORLANDC__
unsigned long start, stop, size;
#else
unsigned long long start, stop, size;
#endif
unsigned int errors;
if (argc != 2)
{
printf("Usage: readSBML filename\n");
return 2;
}
filename = argv[1];
start = getCurrentMillis();
stop = getCurrentMillis();
size = getFileSize(filename);
printf( "\n" );
printf( " filename: %s\n" , filename );
printf( " file size: %llu\n", size );
printf( " read time (ms): %llu\n", stop - start );
printf( " error(s): %u\n" , errors );
printf("\n");
return errors;
}