Link to home
Start Free TrialLog in
Avatar of zircon
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
Avatar of imladris
imladris
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zircon
zircon

ASKER

Good news! The statement

#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.
Avatar of zircon

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.