We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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".