-

Functions HI-TECH C FGETS

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 19:37, 31 July 2017 by Kumokosi (talk | contribs) (Created page with "<strong>FGETS</strong> ==SYNOPSIS== #include <stdio.h> char * fgets(char * s, size_t n, char * stream) ==DESCRIPTION== <strong>Fgets</strong>() places in the buffer s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

FGETS

SYNOPSIS

#include  <stdio.h>

char * fgets(char * s, size_t n, char * stream)


DESCRIPTION

Fgets() places in the buffer s up to n-1 characters from the input stream. If a newline is seen in the input before the correct number of characters is read, then fgets() will return immediately. The newline will be left in the buffer. The buffer will be null terminated in any case. A successful fgets() will return its first argument; NULL is returned on end-of-file or error.