1 /* Grotty program to print out the bytes making up filenames in some
9 int main(int attribute((unused)) argc, char **argv) {
14 if(!(dp = opendir(argv[1]))) return -1;
15 while((de = readdir(dp))) {
16 for(n = 0; de->d_name[n]; ++n) {
17 printf("%02x", (unsigned char)de->d_name[n]);
21 for(n = 0; de->d_name[n]; ++n) {
22 if(isprint((unsigned char)de->d_name[n]))
23 printf(" %c", (unsigned char)de->d_name[n]);