/* Utility to play with the snapshot and do various queries */ #include #include #include #include int main (int argc, char *argv[]) { glocal int ret = -1; glocal bool bitmap = false; glocal.ret = (argc,argv); setarg ('b',"inspect","Inspect a bitmap",glocal.bitmap,false); int ret = -1; if (glocal.bitmap){ FILE *fin = fopen (argv[0],"r"); if (fin == NULL){ tlmp_error ("Can't open file %s (%s)\n" ,argv[0],strerror(errno)); }else{ char byte; int total = 0; while (fread(&byte,1,1,fin)==1){ for (int i=0; i<8; i++){ if (byte & (1< return glocal.ret; }