Solved

For imladris, only!

Posted on 1998-03-17
3
215 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL handling single and double quotes 3 97
Intel debugger, idb, only seeing .c and .h, but no .f90 1 373
Detect CR LF to each line 12 171
Test the speeds on my PC Drives 12 63
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

820 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