Hello
I don't know if this is quite the right place to post this or if my title is describing this correct and maybe this is more of a general C questions, but I hope its OK to post it here. It is on a MSP430 Launchpad anyway.
The code is simplified, there is more parameters passed to the function etc.
// I have a function like this.
void foo (char* bar) {
if (!bar) Serial.print("bar is NULL"); // I want to check when NULL is passed on but this doesn't work?
// Also tried (bar == NULL) and (bar[0] == NULL)...
else Serial.print("bar is not NULL");
}
// Usually I call it