MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / toupper

Function toupper

Kernel/src/string.cpp:220–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220char toupper(char c){
221 if(c >= 'a' && c <= 'z')
222 return c - 'a' + 'A';
223 else return c;
224}
225
226char* strupr(char* s){
227 for(size_t i = 0; s[i] != '\0'; i++){

Callers 2

struprFunction · 0.85
strnuprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected