From
man 3 readdir
Code:
struct dirent {
ino_t d_ino; /* inode number */
off_t d_off; /* offset to the next dirent */
unsigned short d_reclen; /* length of this record */
unsigned char d_type; /* type of file */
char d_name[256]; /* filename */
};
This does not seem to match your
dirent.
Further it might help if you post some code (and please use code tags).
By the way, there is a
dedicated programming section where you might have more luck with this question. I will report your post so a moderator can move it.