File: v5dinfo.c

package info (click to toggle)
vis5d 4.3-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 16,856 kB
  • ctags: 6,127
  • sloc: ansic: 66,158; fortran: 4,470; makefile: 1,683; tcl: 414; sh: 69
file content (31 lines) | stat: -rw-r--r-- 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* v5dinfo.c */



#include <stdio.h>
#include <stdlib.h>
#include "v5d.h"




main( int argc, char *argv[] )
{
   v5dstruct v;

   if (argc!=2) {
      printf("Usage:\n");
      printf("   v5dinfo file\n");
      exit(0);
   }

   if (!v5dOpenFile( argv[1], &v )) {
      printf("Error: couldn't open %s\n", argv[1] );
      exit(0);
   }

   v5dPrintStruct( &v );

   v5dCloseFile( &v );
   exit(0);
}