Is this kind of function calls permissible in C

Viewed 105
char* p = init();
p = foo(p);        /* this one */

the function foo prototype:

char* foo(char* p);

Is it permissible to call foo that way, or does it fall in the Undefined Behavior category?

2 Answers
Related