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!
LVL 1
zirconAsked:
Who is Participating?
 
imladrisConnect With a Mentor Commented:
Thank you. I appreciate that.

0
 
zirconAuthor Commented:
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.
0
 
zirconAuthor Commented:
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.
0
All Courses

From novice to tech pro — start learning today.