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*)

posted @ 2012-08-03 02:12  beforus  阅读(196)  评论(0编辑  收藏  举报