libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches
CMUTIL_FileList Struct Reference

A list of files in a directory. More...

Data Fields

size_t(* Count )(const CMUTIL_FileList *flist)
 Get the number of files in the list.
 
CMUTIL_File *(* GetAt )(const CMUTIL_FileList *flist, uint32_t index)
 Get the file at the specified index in the list.
 
void(* Destroy )(CMUTIL_FileList *flist)
 Destroy the file list and free its resources.
 

Detailed Description

A list of files in a directory.

Field Documentation

◆ Count

size_t(* CMUTIL_FileList::Count) (const CMUTIL_FileList *flist)

Get the number of files in the list.

Parameters
flistA pointer to the CMUTIL_FileList object.
Returns
The number of files in the list.

◆ GetAt

CMUTIL_File *(* CMUTIL_FileList::GetAt) (const CMUTIL_FileList *flist, uint32_t index)

Get the file at the specified index in the list.

Parameters
flistA pointer to the CMUTIL_FileList object.
indexThe index of the file to retrieve.
Returns
A pointer to the CMUTIL_File object at the specified index, or NULL if the index is out of bounds.

◆ Destroy

void(* CMUTIL_FileList::Destroy) (CMUTIL_FileList *flist)

Destroy the file list and free its resources.

Parameters
flistA pointer to the CMUTIL_FileList object to be destroyed.

The documentation for this struct was generated from the following file: