@louis_f You might be interested in this. There is no printf() on an arduino, but you can fill a buffer with sprintf(). Is that what you are after?
printf()
sprintf()