sputs.c
来自「Porting the Simple Sockets Library Dr. C」· C语言 代码 · 共 27 行
C
27 行
/* Sputs.c: this function "puts" a string which Sgets can receive */#include <stdio.h>#include "sockets.h"/* --------------------------------------------------------------------- *//* Sputs: */#ifdef __PROTOTYPE__void Sputs( char *buf, Socket *skt)#elsevoid Sputs( buf, skt)char *buf;Socket *skt;#endif{/* write out buf and the null byte */Swrite(skt,buf,strlen(buf)+1);}/* --------------------------------------------------------------------- */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?