Skip to content

cf_string_last

Category: string
GitHub: cute_string.h


Returns the last character of the string, or '\0' if NULL/empty.

#define cf_string_last(s) slast(s)
Parameters Description
s The string. Can be NULL.

Return Value

Returns the last character.

Remarks

Shortform: slast(s).

cf_string_first
cf_string_len