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

Function strnupr

Kernel/src/string.cpp:233–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233char* strnupr(char* s, size_t n){
234
235 for(size_t i = 0; s[i] && i < n; i++){
236 if(!(i < n)) break;
237 s[i] = toupper(s[i]);
238 }
239
240 return s;
241}
242
243char* strdup(const char* s){
244 char* buf = new char[strlen(s) + 1];

Callers

nothing calls this directly

Calls 1

toupperFunction · 0.85

Tested by

no test coverage detected