cstring · Section 3
cstring_to_upper
NAME
cstring_to_upper - convert the ASCII letters to uppercase in-place
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> void cstring_to_upper(cstr s);
DESCRIPTION
This function turns every ASCII lower-case letter of the string into upper 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