- int vfprintf ( FILE * stream, const char * format, va_list arg );
Write formatted data from variable argument list to stream - int fprintf ( FILE * stream, const char * format, … );
Write formatted data to stream - int snprintf ( char * s, size_t n, const char * format, … );
Write formatted output to sized buffer - int sprintf ( char * str, const char * format, … );
Write formatted data to string - int printf ( const char * format, … );
Print formatted data to stdout
前标意思
s表示输出到字符串
v带参数列表
f将数据以标准格式输出到流steam中
n带长度
常用