SyntaxFix
Write A Post
Hire A Developer
Questions
Looping the pointer to gain better performance:
#include <ctype.h> char* toLower(char* s) { for(char *p=s; *p; p++) *p=tolower(*p); return s; } char* toUpper(char* s) { for(char *p=s; *p; p++) *p=toupper(*p); return s; }