get_ordered_filename_array()

get_ordered_filename_array()#

Retrieve an ordered array of filenames from a directory.

Prototype

PUBLIC char **get_ordered_filename_array(
    const char  *path,
    int         *file_count
);
        

Parameters

Key

Type

Description

path

const char *

The path to the directory.

file_count

int *

A pointer to store the number of files in the array.


Return Value

Returns an ordered array of filenames, or NULL on failure. The caller is responsible for freeing the array.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples