changing a char[] case

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-06
04:25 PM
- last edited on
‎2023-08-07
11:34 AM
by
Doreena Deng
‎2005-10-06
04:25 PM
I am trying to change the case of a char array to all lower case.
I have
I tried tolower with std:: and without, and it makes no difference. I checked, and ctype.h does have the header for tolower in it.
Am I missing some simple step here?
I have
#include "ctype.h" ... for (i=0; i <= 15 ; i++) { buffer(i) = std::tolower (buffer(i)); }and keep getting "Call of non-function error" from Codewarrior when I compile.
I tried tolower with std:: and without, and it makes no difference. I checked, and ctype.h does have the header for tolower in it.
Am I missing some simple step here?
Tom Waltz
Labels:
- Labels:
-
Add-On (C++)
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-06 05:22 PM
‎2005-10-06
05:22 PM
may be buffer ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-06 08:52 PM
‎2005-10-06
08:52 PM
Oleg wrote:
may be buffer?
Thanks, Oleg. I knew it had to be simple.
yes, I am an idiot......
Tom Waltz
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-06 10:00 PM
‎2005-10-06
10:00 PM
TomWaltz wrote:You may also want to consider using the string utilities in the ArchiCAD API - in this case 'CHtoLower' for example.
I am trying to change the case of a char array to all lower case.
Ralph Wessel BArch
Central Innovation
Central Innovation