Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_files.h
Go to the documentation of this file.
1
9
#ifndef __N_FILES_HEADER
10
#define __N_FILES_HEADER
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
21
#include "
nilorea/n_str.h
"
22
#include "
nilorea/n_list.h
"
23
#include "
nilorea/n_log.h
"
24
#include "dirent.h"
25
27
typedef
struct
N_FILE_INFO
{
29
char
*
name
;
31
time_t
filetime
,
filetime_nsec
;
32
}
N_FILE_INFO
;
33
34
int
n_scan_dir
(
const
char
* dir,
LIST
* result,
const
int
recurse);
35
void
n_free_file_info
(
void
* ptr);
36
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
LIST
Structure of a generic LIST container.
Definition
n_list.h:40
N_FILE_INFO::filetime
time_t filetime
file creation time
Definition
n_files.h:31
N_FILE_INFO::filetime_nsec
time_t filetime_nsec
Definition
n_files.h:31
N_FILE_INFO::name
char * name
file name
Definition
n_files.h:29
n_scan_dir
int n_scan_dir(const char *dir, LIST *result, const int recurse)
Scan given directory and return a LIST of char.
Definition
n_files.c:70
n_free_file_info
void n_free_file_info(void *ptr)
free a N_FILE_INFO struct
Definition
n_files.c:15
N_FILE_INFO
common file information
Definition
n_files.h:27
n_list.h
List structures and definitions.
n_log.h
Generic log system.
n_str.h
N_STR and string function declaration.
include
nilorea
n_files.h
Generated on Wed Jul 16 2025 22:55:56 for Nilorea Library by
1.9.8