ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/frameCount/src/mainFrameCount.c
Revision: 36
Committed: Fri Jul 19 00:48:45 2002 UTC (21 years, 11 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.

File Contents

# User Rev Content
1 mmeineke 36 #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     }