undefined. :
char * out;
sprintf(out, "%s:%.2f", node->name, node->distance);
, , undefined, , , .
If you ask if I can use sprintf in a recursive function to add information to the buffer, the answer is perhaps, but not so simple. You will need to maintain a buffer with each recursive call, as well as an index to the buffer that will be updated with each call.
anon
source
share