free_ordered_filename_array()

free_ordered_filename_array()#

Deallocates memory used by an array of ordered filenames, freeing each filename string and the array itself.

Prototype

void free_ordered_filename_array(
    char **array,
    int    size
);

Parameters

Key

Type

Description

array

char **

Pointer to an array of dynamically allocated filename strings.

size

int

Number of elements in the array.


Return Value

This function does not return a value.

Notes

Each filename string in the array is individually freed before freeing the array itself. Ensure that array was allocated using get_ordered_filename_array() to avoid undefined behavior.

Prototype

// Not applicable in JS

Prototype

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