Hi,
I use the following code:
void ediag(STRING* fctName, STRING* level, STRING* diagStr) {
...
}
void ediag(STRING* fctName, STRING* diagStr) {
ediag(fctName, LEVEL_INFO, diagStr);
}
void ediag(STRING* diagStr) {
ediag(NULL, NULL, diagStr);
}
This call works fine:
STRING* LEVEL_INFO = "INFO ";
STRING* fctName = "test";
ediag(fctName, LEVEL_INFO, "huhu");
But this gives me "wrong number/types of parameter":
ediag(fctName, "huhu");
But this works:
ediag(fctName, str_create("huhu"));
The same with:
ediag("huhu");
isn't working, but
ediag(str_create("huhu"));
works fine.
Can someone help (or tell) me why I don't need str_create in the first case, but in all others?
Regards,
Pegamode.