cefsampling.c 1.25 KB
 /************************************************************/
 /*        
/***********************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <CEF.h>
#include <string.h>
#include <time.h>
#include <math.h>
 
#define MAX_FILE_NAME_LEN  250        // Max. file name length

/**************************
   Function prototypes
**************************/
 
 
/*--------------------------------------------------------------------------*/
int main(int argc, char *argv[])
{
    
    t_err  err;
    t_meta * meta;
 
/*********************** Open CEF file *****************************/
   
       err = Read_CEF_file(argv[1]);
        
       meta = Get_meta ("TIME_RESOLUTION");
 //      printf(" %s %d %d\n", meta->type,  meta->entry->size, meta->entry->max_size);
       if (meta != NULL) printf("%s", *meta->entry->item);
       else printf("-1 ");
/*       
       meta = Get_meta ("MIN_TIME_RESOLUTION"); 
       if (meta != NULL) printf("%s ", *meta->entry->item);
       else printf("-1 ");
       
       meta = Get_meta ("MAX_TIME_RESOLUTION"); 
       if (meta != NULL) printf("%s\n", *meta->entry->item);
       else printf("-1\n");
*/       
       err = Close_CEF_file();
    
}