I did not know that the return value of snprintf is actually the length of the string that would be produced. I assumed I'd just get some error code - which would require re-trying with some larger buffer, thus the "loop".
Thanks for that :-)
Thanks for that :-)
No comments yet.