Sorry for the basic question, but why does it not return a pointer to an unsigned char? I mean, I looked in K&R but it does explain the rational (as far as I could tell...)
Thanks
Hi, I'm using µVision and the Armcc compiler and there is an option in the project settings saying "Plain Char is Signed". If this flag is set, it returns a signed char.
Maybe you also got such kind of flag.
"TXT - for things that are "text" and, therefore, likely to be used with the string library functions."
How droll of me. I'm jusing "char" :)
You wait and see how far that gets you if you ever have to program under MISRA C rules, one of which is "no use of fundamental types like char, int, etc. except in typedefs".