Function
GLibstrcmp0
Description
Compares str1
and str2
like strcmp(). Handles NULL
gracefully by sorting it before non-NULL
strings.
Comparing two NULL
pointers returns 0.
Available since: | 2.16 |
Parameters
str1 |
const char* |
A C string or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
str2 |
const char* |
Another C string or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. |