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.
If I include "stdint.h", allocate a pointer of type "int8_t" and then
int8_t *ptr = strtok(...)
I get a compiler warning:
#513-D: a value of type "char *" cannot be assigned to an entity of type "int8_t *"
so if I want to declare a pointer to a string, I must always use "char" to prevent the warning? is there another "type" to facilitate portability?
Is there a reason why you see a problem with using "char" when interacting with functions that the language standard says are operating on char?
For compilers that supports wide characters, there are more character data types. But they are used with string functions with different names. And there may then also be macros to handle switching between characters and wide characters at the same time as switching between string functions operating of characters and string functions operating on wide characters.
Are you coding using the MISRA standard?
No I do not. I get it. Thanks for your reply.