get_last_segment()

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

path

const char *

The path string to analyze.

separator

char

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