Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v6

getchar(3)



getchar read character getchar( )
provides the simplest means of reading characters from the standard input for C programs. It returns successive characters until end-of-file, when it returns ‘‘\0’’. Associated with this routine is an external variable called fin, which is a structure containing a buffer such as described under getc (III). Generally speaking, should be used only for the simplest applications; is better when there are multiple input files. getc (III) Null character returned on EOF or error. 1 should be returned on EOF; null is a legitimate character.



getchar(3)