Creating the loop.setup file (cont)
The sprintf() function has same syntax as printf() except that result ends up in string (here str):
sprintf(str,"Hello %d !",i)
The string str now holds:
OutFile prints strings or values to file:
put{TYPE}: val
Where {TYPE} is one of the C variable types (char,int,double...) or string,tab,newLine