Question: Why does printf print his own call?

Hi

I lunch a .mpl maple program in a bash shell.

Between the other things, the program shoud print in a file a line that gives the user informations about the elapsed time

I've put inthe code this line

appendto("./out.txt"):
printf("\n The total elapsed time has been of %d hour(s)  %d minute(s) and %a seconds \n",hou, mini,seci):

the problem is that the out file contains not only the formatted answer, but also the very call:

printf("\n The total elapsed time has been of %d hour(s)  %d minute(s) and %a seconds \n",hou, mini,seci):

 The total elapsed time has been of 0 hour(s)  2 minute(s) and 13 seconds
 

how can I oblige maple not to print the first of these lines?

thanks

Salvo

Please Wait...