-

Changes

Jump to: navigation, search

Functions HI-TECH C FGETS

574 bytes added, 19:37, 31 July 2017
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..."
<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 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 <strong>fgets</strong>() will return immediately. The newline will
be left in the buffer. The buffer will be null terminated in any case. A successful <strong>fgets</strong>() will return
its first argument; NULL is returned on end-of-file or
error.

Navigation menu