Cryptic C Code ... I thought that was the point!
Someone had a problem with his strnicmp() as - seemingly - it's not portable (not ANSI).
I told him to make a macro like the following, he was only checking one character anyway:
He said it was too cryptic! Too cryptic!! I thought that was the point of C!
Besides, that's not cryptic. I think people just don't know how to code these days.
c@software
I told him to make a macro like the following, he was only checking one character anyway:
#define TOUPPER(c) ( c & ~('a' ^ 'A') )
He said it was too cryptic! Too cryptic!! I thought that was the point of C!
Besides, that's not cryptic. I think people just don't know how to code these days.
c@software
1 Comments:
Damn straight!
(This is an old post, but what the heck.)
By Dionysus, at 5/1/10, 6:33 AM
Post a Comment
<< Home