33 while(fgets(buffer, 256, in) != NULL) {
34 int len = strlen(buffer);
36 if(buffer[len-1] ==
'\n') {
51 const char *ptr =
strrchr(filename,
'/');
53 return (ptr ? ptr + 1 : filename);
60 return (ptr ? ptr + 1 : NULL);
65 int status = (access(filename, R_OK) == 0);
68 filename, status ?
"Yes" :
"No"));
74 int status = (access(filename, F_OK) == 0);
77 filename, status ?
"Yes" :
"No"));