Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fgetc(3) — Purdue Xinu

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getc(2)

putc(2)

gets(3)

scanf(3)

FGETC(3)

NAME

fgetc, getchar − get character from a device

SYNOPSIS

#include <io.h>

int fgetc(dev)
int dev;

int getchar()

DESCRIPTION

These procedures are included for compatibility with UNIX.  Fgetc returns the next character from the named input device.

Getchar() is identical to getc(CONSOLE).

Note that fgetc is exactly equivalent to getc. 

SEE ALSO

getc(2), putc(2), gets(3), scanf(3),

DIAGNOSTICS

These functions return SYSERR to indicate an illegal device or read error. 

December 01, 1986  —  Xinu Programmer’s Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026