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

📄 fputc.c

📁 在x86平台上运行不可信任代码的sandbox。
💻 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 + -