zircon
asked on
For imladris, only!
A small token of my appreciation for your comment answering the obvious follow-up question to Nexial's answer on Q.10043343. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oops! The second definition is:
#define _tolower(c) ((c)+('a'-'A'))
That's what I get for not paying attention when I'm copy/pasting.
#define _tolower(c) ((c)+('a'-'A'))
That's what I get for not paying attention when I'm copy/pasting.
ASKER
#undef tolower
did the trick. My program now works perfectly.
Two definitions of tolower were present in the ctype.h file:
#if !defined(_WIN32)
#define tolower(c) (isupper(c) ? (c)+('a'-'A') : (c))
and
#ifndef __STDC__
/* additional code here */
#define _toupper(c) ((c)-('a'-'A'))
So I'm still not sure what's causing the problem, but I think you
are on the right track.
Thanks again.