bazel__book/p30_33/inc_demo/upper.cc

7 lines
99 B
C++

#include <ctype.h> // Why ?
void upper(char* s) {
for (; *s; ++s) {
*s = toupper(*s);
}
}