fputl.c

来自「dos 1.0 其中包含quick basic源代码、内存管理himem emm」· C语言 代码 · 共 16 行

C
16
字号
/*  fputl.c - write a CRLF line to a file
 */

#include "..\h\tools.h"

/* writes a line to file (with trailing CRLFs) from buf, return <> 0 if
 * writes fail
 */
fputl (buf, len, fh)
char *buf;
int len;
FILE *fh;
{
    return (fwrite (buf, 1, len, fh) != (unsigned) len || fputs ("\r\n", fh) == EOF) ? EOF : 0;
}

⌨️ 快捷键说明

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