Linux C函数库参考手册之格式化输入输出函数

fprintf(格式化输出数据至文件)

#include <stdio.h>
int fprintf(FILE *stream, const char *format, ...);

fscanf(格式化字符串输入)

include <stdio.h>
int fscanf(FILE *stream, const char *format, ...);

printf(格式化输出数据)

#include <stdio.h>
int printf(const char *format, ...);

scanf(格式化字符串输入)

include <stdio.h>
int scanf(const char *format, ...);

snprintf(格式化字符串复制)

#include <stdio.h>
int snprintf(char *str, size_t size, const char *format, ...);

sprintf(格式化字符串复制)

#include <stdio.h>
int sprintf(char *str, const char *format, ...);

sscanf(格式化字符串输入)

include <stdio.h>
int sscanf(const char *str, const char *format, ...);

vfprintf(格式化输出数据至文件)

#include <stdarg.h>
int vfprintf(FILE *stream, const char *format, va_list ap);

vfscanf(格式化字符串输入)

#include <stdarg.h>
int vfscanf(FILE *stream, const char *format, va_list ap);

vprintf(格式化输出数据)

#include <stdarg.h>
int vprintf(const char *format, va_list ap);

vscanf(格式化字符串输入)

#include <stdarg.h>
int vscanf(const char *format, va_list ap);

vsnprintf(格式化字符串复制)

#include <stdarg.h>
int vsnprintf(char *str, size_t size, const char *format, va_list ap);

vsprintf(格式化字符串复制)

#include <stdarg.h>
int vsprintf(char *str, const char *format, va_list ap);

vsscanf(格式化字符串输入)

#include <stdarg.h>
int vsscanf(const char *str, const char *format, va_list ap);

Leave a Reply

Your email address will not be published. Required fields are marked *