📄 fputc.c
字号:
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include "ioprivate.h"int fputc(int c, FILE *f){ c &= 0xff; // Make sure we have output buffer space for one character. if (f->opos >= f->omax) { if (__getospace(f) < 0) return EOF; } // Add the character to the buffer f->obuf[f->opos++] = c; // Flush the buffer if appropriate. if ((f->bufmode == _IOLBF && c == '\n') || (f->bufmode == _IONBF)) { if (fflush(f) < 0) return EOF; } return c;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -