7 #define CLUSTER_SIZE 16384
10 int main(int argc, char **argv)
12 int fd = open("/home/sesse/minnekort.img", O_RDONLY);
17 if (lseek(fd, offset, SEEK_SET) != offset) {
21 if (memcmp(rd, ". ", 11) == 0) {
24 printf("Possible directory found at 0x%x\n", offset);
25 for (i = 0; i < 128; ++i) {
27 printf("%c%c%c%c%c%c%c%c.%c%c%c\n",
28 rd[0], rd[1], rd[2], rd[3],
29 rd[4], rd[5], rd[6], rd[7],
30 rd[8], rd[9], rd[10]);
33 offset += CLUSTER_SIZE;
34 printf("0x%x\r", offset);