Reading/Closing Directory (The GNU C Library)

https://www.gnu.org/software/libc/manual/html_node/Reading_002fClosing-Directory.html

Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ Next: Simple Program to List a Directory , Previous: Opening a Directory Stream , Up: Accessing Directories [ Contents ][ Index ] This section describes how to read directory entries from a directory stream, and how to close the stream when you are done with it. All the symbols are declared in the header file dirent.h . Function: struct dirent * readdir (DIR * dirstream ) ΒΆ Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts . This function reads the next entry from the directory. It normally returns a pointer to a structure containing information about the file. This structure is associated with the dirstream handle and can be rewritten by a subsequent call. Portability Note: On some systems readdir may not return entries for . and .. , even though these are always ...

Linked on 2023-10-03 04:35:53 | Similar Links