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

📄 putc.3

📁 操作系统设计与实现源码
💻 3
字号:


PUTC(3)                   Minix Programmer's Manual                    PUTC(3)


NAME
     putc, putchar, fputc, putw - put character or word on a stream

SYNOPSIS
     #include <stdio.h>

     int putc(int c, FILE *stream)
     int putchar(int c)
     int fputc(int c, FILE *stream)
     int putw(int w, FILE *stream)

DESCRIPTION
     Putc appends the character c to the named output stream.  It returns  the
     character written.

     Putchar(c) is defined as putc(c, stdout).

     Fputc behaves like putc, but is a genuine function rather than a macro.

     Putw appends word (that is, int) w to the output stream.  It returns  the
     word  written.   Putw neither assumes nor causes special alignment in the
     file.

SEE ALSO
     fopen(3), fclose(3), getc(3), puts(3), printf(3), fread(3).

DIAGNOSTICS
     These functions return the constant EOF upon error.  Since this is a good
     integer, ferror(3) should be used to detect putw errors.

BUGS
     Because it is implemented as a macro, putc treats a stream argument  with
     side  effects  improperly.   In  particular `putc(c, *f++);' doesn't work
     sensibly.

     Errors can occur long after the call to putc.
















                              November 6, 1985                               1

⌨️ 快捷键说明

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