printf、fprintf和sprintf的区别
printf outputs to the standard output stream (stdout)
fprintf goes to a file handle (FILE*)
sprintf goes to a buffer you allocated. (char*)
printf outputs to the standard output stream (stdout)
fprintf goes to a file handle (FILE*)
sprintf goes to a buffer you allocated. (char*)