⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tsnprintf.c

📁 unix网络编程第一卷socket编程书上的全部源代码
💻 C
字号:
/* * If your system does not provide snprintf(), this program will compile * but will have an undefined error from the linker. * * If you are using the lib/snprintf.c function that is supplied for * systems without snprintf(), you should get an error output from our * library function. * * If your system provides the function, and it works, there should be * no output. */#include	"unp.h"intmain(int argc, char **argv){	int		n;	char	buf[1024];	n = snprintf(buf, 4, "%d", 9999);	if (n > 3)		printf("error: snprintf overflowed buffer, n = %d\n", n);	exit(0);}

⌨️ 快捷键说明

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