Depth-Studios
Welcome guest (Login / Register)
char to upper

Definition


char char_to_upper(char c);


Description


Converts a char to upper case.


Parameters


c
Char to convert.


Return Value


Returns the upper case of c.


Example


#include <stdio.h>
#include <libc/string.h>
 
int main(int argc, char *argv[])
{
	char c = 'a';
 
	c = char_to_upper(c);
 
	printf("Char: %c\n", c);
 
	return 0;
}


Output:
Char: A