cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

changing a char[] case

TomWaltz
Newcomer
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
Advocate
may be buffer ?

TomWaltz
Newcomer
Oleg wrote:
may be buffer ?


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

yes, I am an idiot......
Tom Waltz

Ralph Wessel
Mentor
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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!