Revision: | 36 |
Committed: | Fri Jul 19 00:48:45 2002 UTC (22 years, 9 months ago) by mmeineke |
Content type: | text/plain |
File size: | 269 byte(s) |
Log Message: | moved the actual routine into a seperate source from the main. This allows the routine to be used in other applications. |
# | Content |
---|---|
1 | #include <stdlib.h> |
2 | #include <stdio.h> |
3 | |
4 | #include "frameCount.h" |
5 | |
6 | int main(int argc, char *argv[] ){ |
7 | |
8 | if( argc != 2 ){ |
9 | printf( "I need a dump file to read.\n" ); |
10 | exit(8); |
11 | } |
12 | |
13 | printf( "file \"%s\" has %d frames.\n", argv[1], frameCount( argv[1] ) ); |
14 | |
15 | return 0; |
16 | } |