![]() |
![]()
| ![]() |
![]()
NAMExt_strupper() - Covert all lower case characters to upper LIBRARY#include <xtend/string.h> -lxtend SYNOPSISsize_t xt_strupper(char *str) ARGUMENTSstr Pointer to null-terminated string to be copied DESCRIPTIONxt_strupper(3) converts lower case characters in a string to upper case, overwriting the original. It is functionally equivalent to xt_strlupper(str, str, strlen(str)). It is implemented separately for efficiency, since using xt_strlupper(3) for this purpose requires knowing or computing the length of the string and passing three arguments instead of one. RETURN VALUESSize of the src string. EXAMPLESchar src[] = "Some text", dest [DEST_SIZE + 1]; if ( xt_strlupper(dest, src, DEST_SIZE + 1) != DEST_SIZE + 1 ) SEE ALSOxt_strllower(3), strlcpy(3), strlcat(3)
|