pop_last_segment()
#
Remove the last segment from a path string.
Prototype
PUBLIC char *pop_last_segment(
char *path,
char separator
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The path string to modify. |
|
|
The character used to separate path segments. |
Return Value
Returns the modified path string with the last segment removed.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples