Nilorea Library
C utilities for networking, threading, graphics
|
Data Structures | |
struct | N_FILE_INFO |
common file information More... | |
Functions | |
void | n_free_file_info (void *ptr) |
free a N_FILE_INFO struct More... | |
int | n_scan_dir (const char *dir, LIST *result, const int recurse) |
Scan given directory and return a LIST of char. More... | |
struct N_FILE_INFO |
void n_free_file_info | ( | void * | ptr | ) |
free a N_FILE_INFO struct
ptr | the pointer to the struct to free |
Definition at line 15 of file n_files.c.
References __n_assert.
Referenced by n_scan_dir().
int n_scan_dir | ( | const char * | dir, |
LIST * | result, | ||
const int | recurse | ||
) |
Scan given directory and return a LIST of char.
Only files are listed.
dir | The directory to scan |
result | An empty LIST ptr. Will be filled by a char list of result. |
recurse | TRUE or FALSE to enable / disable recursion |
Definition at line 82 of file n_files.c.
References __n_assert, list_push_sorted(), LOG_ERR, Malloc, n_comp_file_info(), n_free_file_info(), n_log, and n_scan_dir().
Referenced by n_scan_dir().