24-05-2016, 09:04 AM
Thanks for the response. To summarise, I think the following is correct:
Code:
extern void print1(const char *text);
extern void print2(const uint8_t *text);
int main(void)
{
const char *txt = "Some text";
print1("Some text"); // Compliant (preferred solution)
print2((uint8_t *)"Some text"); // Compliant
print2((uint8_t *)txt); // Compliant
}
<t></t>