Function (Path Standard C Header / stdio.h)

snprintf

int snprintf(char *ToPrint, int Sizeof_ToPrint, char *Format, ... arg1);


Parameters

  char *ToPrint
  int Sizeof_ToPrint
  char *Format
  ... arg1

函数 (属于 标准C头文件 / stdio.h)

snprintf

int snprintf(char *ToPrint, int Sizeof_ToPrint, char *Format, ... arg1);

打印到字符串,并提前告知字符串缓冲区大小防止越界写入


参数

  char *ToPrint
  int Sizeof_ToPrint
  char *Format
  ... arg1