#include <fts.h>
FTSENT *fts_read(register FTS *sp);
The fts_read() function
is used to get information on a particular file in a directory
hierarchy. Directories are visited at least twice, once in pre-order,
before any of their descendants are visited, and once in post-order,
after all of their descendants are visited. All other files are
visited at least once.
- sp
-
Represents the file hierarchy itself.
The fts_read() function returns a pointer to an
FTSENT structure describing a file in the
hierarchy if successful. The fts_read() function may also
fail and set errno for any of the errors that the
chdir(), malloc(),
opendir(), readdir(), and
stat() functions specify.
- 0
-
EOF was reached.
4.4BSD
Unsafe.
None.
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
- Functions:
- chdir(), fts_children(), fts_close(), fts_open(), fts_set(), qsort(), stat()
MKS Toolkit 9.3 Documentation Build 6.