cstring · Section 3
cstring_to_lower
NAME
cstring_to_lower - convert the ASCII letters to lowercase in-place
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> void cstring_to_lower(cstr s);
DESCRIPTION
This function turns every ASCII upper-case letter of the string into lower case, in place, and leaves every other byte as it is.
PARAMETERS
s String to change
NOTES
Only the bytes 'A' to 'Z' change, and the locale plays no part, so the result is the same in every locale (a Turkish one included). A byte above 0x7F never changes, which keeps a UTF-8 string valid UTF-8 Asserts if s is NULL