Nilorea Library
C utilities for networking, threading, graphics
n_files.c File Reference

files main source file More...

#include "nilorea/n_files.h"
+ Include dependency graph for n_files.c:

Go to the source code of this file.

Functions

static int n_comp_file_info (const void *a, const void *b)
 local comparison function for sorting filenames, case insensitive More...
 
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...
 

Detailed Description

files main source file

Author
Castagnier Mickael
Version
1.0
Date
02/11/23

Definition in file n_files.c.

Function Documentation

◆ n_comp_file_info()

static int n_comp_file_info ( const void *  a,
const void *  b 
)
static

local comparison function for sorting filenames, case insensitive

Parameters
aFirst N_FILE_INFO container
bSecond N_FILE_INFO container
Returns
0 if strings are equals, < 0 if S1 < S2 , > 0 if S1 > S2

Definition at line 31 of file n_files.c.

Referenced by n_scan_dir().

+ Here is the caller graph for this function: