Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #106
Difficulty: Easy
A kernel is at the heart of the Linux OS; and this kernel acts as an interface between the user and underlying hardware.
True or False?
Linux & Unix Commands - Search Man Pages

putc(3f) [bsd man page]

PUTC(3F)																  PUTC(3F)

NAME
putc, fputc - write a character to a fortran logical unit SYNOPSIS
integer function putc (char) character char integer function fputc (lunit, char) character char DESCRIPTION
These funtions write a character to the file associated with a fortran logical unit bypassing normal fortran I/O. Putc writes to logical unit 6, normally connected to the control terminal output. The value of each function will be zero unless some error occurred; a system error code otherwise. See perror(3F). FILES
/usr/lib/libU77.a SEE ALSO
putc(3S), intro(2), perror(3F) 4.2 Berkeley Distribution May 15, 1985 PUTC(3F)

Check Out this Related Man Page

PUTC(3) 						     Library Functions 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. 7th Edition November 6, 1985 PUTC(3)

Featured Tech Videos