get_last_segment()
#
Get the last segment of a path string.
Prototype
PUBLIC const char *get_last_segment(
const char *path,
char separator
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The path string to analyze. |
|
|
The character used to separate path segments. |
Return Value
Returns a pointer to the last segment in the path string.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples