strntolower()
#
strntolower()
converts the first n
characters of the input string to lowercase.
Prototype
char *strntolower(
char *s,
size_t n
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the null-terminated string to be converted. |
|
|
Maximum number of characters to convert. |
Return Value
Returns a pointer to the modified string s
.
Notes
If s
is NULL or n
is zero, the function returns NULL without modifying the string.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples