Skip to content

cf_string_first

Category: string
GitHub: cute_string.h


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

#define cf_string_first(s) sfirst(s)
Parameters Description
s The string. Can be NULL.

Return Value

Returns the first character.

Remarks

Shortform: sfirst(s).

cf_string_last
cf_string_len