cefinfo.c 1.32 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_variable *var; 
    t_meta *meta;
    int i,  VarCount;
   

 
/*********************** Open CEF file *****************************/
   
       err = Read_CEF_file(argv[1]);
       VarCount = Variables_count();
       

     //  fprintf(stdout,"Records Number  %d Vars Num %d\n", RecCount, VarCount);
  
       for (i = 0; i < VarCount; i++) {
	   var  = Get_variable_number(i);
	   if (var->type != CEF_ISO_TIME  && var->varying) printf("%s \n", var->name);
	   //fprintf(stdout,"%s %d %d\n", var->name, var->type, var->varying); 	 
       } 
       
       err = Close_CEF_file();
       
   //    if ((cef_time = Get_variable("time_tags")) == NULL) exit(1);
      
//       meta = Get_meta("Version_number");
//       version = Get_item(meta->entry, 0);
}