Solved

For imladris, only!

Posted on 1998-03-17
3
203 Views
Last Modified: 2010-04-02
A small token of my appreciation for your comment answering the obvious follow-up question to Nexial's answer on Q.10043343.  Thanks!
0
Comment
Question by:zircon
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
imladris earned 50 total points
ID: 1257735
Thank you. I appreciate that.

0
 
LVL 1

Author Comment

by:zircon
ID: 1257736
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
 
LVL 1

Author Comment

by:zircon
ID: 1257737
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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question