I wish to call this function with or without a second parameter. With it, I care about setting its value and would be able to test the value of the message from an outside function. Without it, I don't care and would simply like the return value (which will be returned in either case and is an integer, respType):
PHP Code:
stock parse_resp_data(data[], message[] = 0)
{
new respType, error[512], errorSize = sizeof(error);
if (!strlen(message))
{
new message[512];
}
switch (data[0])
{
case '+': { respType = parse_resp_simple_string(data[1], message); }
...
}
return respType;
}
Is this possible?