Toupper

From SA-MP Wiki

Jump to: navigation, search

toupper

Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Description:

This function changes a single character to uppercase.


Parameters:
(c)
cThe character to change to uppercase.


Return Values:

The ASCII value of the character provided, but in uppercase.


Example Usage:

public OnPlayerText(playerid, text[])
{
    text[0] = toupper(text[0]);
    //This sets the first character to upper case.
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

tolower - Sets a character to lower case.

Personal tools