#opendir

目录操作函数opendir、readdir和closedir

首先,明确一个类型DIR的含义:#include<dirent.h>DIR   Atyperepresentingadirectorystream.DIR是在目录项格式头文件dirent.h中定义的,它表示一个目录流类型。一、opendir-openadirectorySYNO...

opendir,readdir,closedir

 结构体dirent:structdirent{ino_td_ino;//inodenumberoff_td_off;//offsettothenextdiretunsignedshortd_reclen;//lengthofthisrecordunsignedshortd_type;//typeoffile...
代码星球 ·2020-04-09