Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

footprintmain.cc

Go to the documentation of this file.
00001 
00002 
00003 #include "footprint.h"
00004 
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 
00008 int main(int argc, char * const argv[])
00009 {
00010   if (argc!=2) {
00011     fprintf(stderr, "%s: usage: %s filename\n", argv[0], argv[0]);
00012     abort();
00013   }
00014   FILE* infile=fopen(argv[1],"r");
00015   if (NULL == infile) { perror(argv[1]); abort(); }
00016   fprintf(stdout, "%s %s\n", footprint(infile), argv[1] );
00017 }

Generated on Tue Dec 30 12:07:35 2003 for ErrorProtect by doxygen 1.3.2