15 char kbuf[256],*p,file[128],*sname[128],nm[128],*
sfile[128];
16 char line[128],done[128];
25 pf=popen(
"ls -1 *hydro*",
"r");
26 while(fgets(nm,
sizeof(nm),pf))
29 *(nm+(strlen(nm)-1))=
'\0';
33 if((fp1 = fopen (nm,
"r")))
35 if(fgets(line,
sizeof(line),fp1))
37 k=sscanf(line,
"%d %s",&time_stamp,done);
40 if(!strcmp(done,
"done"))
42 sname[
j]=calloc(1,strlen(nm)+1);
44 sfile[
j]=calloc(1,strlen(file)+1);
printf("fbuf is %s\n", fbuf)
struct sensor_file * sfile
struct MenuItem drt_items[100]