pop_last_segment()

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

path

char *

The path string to modify.

separator

char

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