cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
TomWaltz
Participant

changing a char[] case

I am trying to change the case of a char array to all lower case.

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
3 Replies 3
Oleg
Expert
may be buffer ?
TomWaltz
Participant
Oleg wrote:
may be buffer ?


Thanks, Oleg. I knew it had to be simple.

yes, I am an idiot......
Tom Waltz
TomWaltz wrote:
I am trying to change the case of a char array to all lower case.
You may also want to consider using the string utilities in the ArchiCAD API - in this case 'CHtoLower' for example.
Ralph Wessel BArch
Central Innovation

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!