strntoupper()

strntoupper()#

Converts the first n characters of the string s to uppercase in place.

Prototype

char *strntoupper(
    char *s,
    size_t n
);

Parameters

Key

Type

Description

s

char *

Pointer to the null-terminated string to be converted.

n

size_t

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