Quote Originally Posted by quzah
You can return an array that way, provided it is static. Ever hear of strtok?
Code:
char *foo( ... )
{
    static char buf[ BUFSIZ ];
    ...
    return buf;
}

Quzah
Isthere any advantage in this practice comparedto my solution?