Meh!
Quote:
Originally Posted by Lazy
In the following example the function takes a lowercase character and XORs it with 00100000 to convert it to an uppercase character.
(...)
Is there a way to do the same thing with C?
|
Sure there is
Code:
#include <string.h>
char lowerCaseCharacter = 'c';
char upperCaseCharacter = toupper (lowerCaseCharacter);
Works on any architecture, any character set and even unicode. Fast.
Why bother with non-portable code ?
