-

Difference between revisions of "Functions HI-TECH C FGETS"

From HI-TECH C for CP/M Fan WIKI(EN)
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 19:37, 31 July 2017

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.