H
hatman
If func() is always going to allocate memory,
then it's best for func to return a pointer
and not take one as as argument.
char *func(char* command);
func would return either NULL, if allocation was unsuccessful,
or a pointer to memory.
For a real C programmer (as you, i think), this function definition
mean that the malloc is done in the function ?? So you will do a free
of the returned buffer afterward ?
Thanks 4 your help..
Joël.W