test.c

来自「很好用的」· C语言 代码 · 共 29 行

C
29
字号
/* -------------------------------------------------------------------- *//* -------------------------------------------------------------------- */#include "stdio.h"#include "format.h"/* -------------------------------------------------------------------- *//* -------------------------------------------------------------------- */int main(int argc, char **argv){	char 	buf[1024];	int	res;	printf("%3u\n", time(NULL));	res = libport_snprintf(buf, 30, "%s %c %3d this %d %3u is %% a test %s", "hey", 'c', 2, 218, time(NULL),"too");	libport_printf("string: +%s+\n", buf);	libport_printf("len: %d\n", res);		return 0;}/* -------------------------------------------------------------------- *//* -------------------------------------------------------------------- */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?