Get the App
SLTechnology News&Howtos  ›  Servers  › 

Operation of Linux Unix C file directory

Shulou Source: shulou.com Published: 2022-06-03 08:53:10 12月06日 Update

1 header files to be included:

# include

# include

# include

# include

# include

2 commonly used functions:

Int mkdir (const char * path,mode_t mode); create a directory

DIR * opendir (const char*path); open a directory

Struct dirent * readdir (DIR * dir); read directory

Void rewinddir (DIR * dir)

Off_t telldir (DIR * dir); returns the offset of the read directory

Void seekdir (DIR * dir,off_t off)

Int closedir (DIR * dir)

Tags: Directories files functions commonly used offset Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info Linux Shulou Technology NVidia