Members of Dirent structure

后端 未结 3 596
孤街浪徒
孤街浪徒 2020-12-08 04:58

I have started working with dirent.h library and I came across a very useful member of \"struct dirent\" structer which struct dirent *p->d_name in my book. But unfortunatly

3条回答
  •  忘掉有多难
    2020-12-08 05:32

    in addition to above answer of @Binyamin Sharet:

     off_t d_off - file offset
        unsigned short int d_reclen - length of the dirent record
        unsigned short int d_namlen - length of name
        unsigned int d_type - type of file
    

提交回复
热议问题