ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/frameCount/src/mainFrameTime.c
Revision: 1086
Committed: Fri Mar 5 17:21:20 2004 UTC (20 years, 4 months ago) by mmeineke
Content type: text/plain
File size: 307 byte(s)
Log Message:
added support for files larger than 2 Gb

File Contents

# User Rev Content
1 mmeineke 1086 #define _FILE_OFFSET_BITS 64
2    
3 mmeineke 84 #include <stdlib.h>
4     #include <stdio.h>
5    
6     #include "frameCount.h"
7    
8     int main(int argc, char *argv[] ){
9    
10     if( argc != 2 ){
11     printf( "I need a dump file to read.\n" );
12     exit(8);
13     }
14    
15     printf( "# file \"%s\" has %d frames.\n", argv[1],
16     frameCount( argv[1], 1 ) );
17    
18     return 0;
19     }