00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <stdio.h>
00020 #include "volume.h"
00021 #include <stdlib.h>
00022
00035 int main(argc,argv)
00036 int argc;
00037 char *argv[];
00038 {
00039
00040 int VAL;
00041 FILE *fin;
00042
00043 if (argc<2 || strcmp (argv[1],"-h") == 0 )
00044 {
00045 printf("\nparam <fichier image ELF>\n -h help\n\n");
00046 exit(1);
00047 }
00048
00049 if ( (fin=fopen(argv[1],"r"))==NULL )
00050 {
00051 printf("Erreur a l'ouverture du fichier.\n");
00052 exit(1);
00053 }
00054
00055 lire_longueur_trace(fin,&VAL);
00056 printf("dimx=%d ",VAL);
00057 lire_nb_trace(fin,&VAL);
00058 printf("dimy=%d ",VAL);
00059 lire_nb_plan(fin,&VAL);
00060 printf("dimz=%d ",VAL);
00061 lire_nb_octet(fin,&VAL);
00062 printf("Nb_bit=%d ",VAL);
00063 lire_longueur_entete(fin,&VAL);
00064 printf("dim_entete=%d\n",VAL);
00065 }