Skip to content

MTY_GetFileExtension

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Parse a path and extract the file extension.

const char *MTY_GetFileExtension(
    const char * path
);

Parameters

path (const char *)

Path to a file.

Return value

const char *

This buffer is allocated in thread local storage and must not be freed.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: File

Clone this wiki locally