/*++ /* NAME /* scan_dir 3 /* SUMMARY /* directory scanning /* SYNOPSIS /* #include <scan_dir.h> /* /* SCAN_DIR *scan_dir_open(path) /* const char *path; /* /* char *scan_dir_next(scan) /* SCAN_DIR *scan; /* /* char *scan_dir_path(scan) /* SCAN_DIR *scan; /* /* void scan_push(scan, entry) /* SCAN_DIR *scan; /* const char *entry; /* /* SCAN_DIR *scan_pop(scan) /* SCAN_DIR *scan; /* /* SCAN_DIR *scan_dir_close(scan) /* SCAN_DIR *scan; /* DESCRIPTION /* These functions scan directories for names. The "." and /* ".." names are skipped. Essentially, this is <dirent> /* extended with error handling and with knowledge of the /* name of the directory being scanned. /* /* scan_dir_open() opens the named directory and /* returns a handle for subsequent use. /* /* scan_dir_close() terminates the directory scan, cleans up /* and returns a null pointer. /* /* scan_dir_next() returns the next requested object in the specified /* directory. It skips the "." and ".." entries. /* /* scan_dir_path() returns the name of the directory being scanned. /* /* scan_dir_push() causes the specified directory scan to enter the /* named subdirectory. /* /* scan_dir_pop() leaves the directory being scanned and returns /* to the previous one. The result is the argument, null if no /* previous directory information is available. /* DIAGNOSTICS /* All errors are fatal. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.