prg_dir_contents()
Abstract
Obtain a listing of all the directory names and filenames contained within the indicated directory.
Syntax
prg_dir_contents (directory_path_name)
| Argument | Type | Description |
|---|---|---|
directory_path_name |
const char * |
Path of the directory of interest |
Return Type
PrgT_List *
New list of allocated strings that are the names of files and directories in the indicated directory.
Header
prg_file_funcs.h
Details
Return value will be a newly allocated PrgT_List of allocated strings. You, the caller, must call prg_list_free () and then prg_mem_free () on this list when you are done using it. The directory names of "." and ".." will not be present in this list.
The pathname passed to function should be a valid directory.