Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


LinuxProgramming.com: New SourceLib Samples Posted

Jan 16, 2001, 13:31 (0 Talkback[s])
(Other stories by Lou Grinzo)

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