Three new code samples, all in the File_Handling category:
file_existence
Check for the existence of files, directories, and links, without
confusing one for another. Also provides the option of either
following links or not in finding items.
Keywords: C stdio.h stdlib.h stat.h string.h errno.h stat lstat
file directory link existence
globbing
Simple demonstration of file globbing (converting a pattern, e.g.
“/bin/*”, to the list of files that currently match the
pattern).
Keywords: C stdio.h stdlib.h glob.h unistd.h string.h glob_t glob
read globfree
globbing2
Simple demonstration of file globbing (converting a pattern, e.g.
“/bin/*”, to the list of files that currently match the pattern),
including a custom error handler function.
Keywords: C stdio.h stdlib.h glob.h unistd.h string.h glob_t glob
read globfree