Header: stdio.h
Syntax:
extern char *fgets
(
char *s,
int n,
FILE *stream
);
Purpose: This function reads at most one less than the number of characters specified by n from the stream pointed to by stream into the array pointed to by s. No additional characters are read after a new-line character (which is retained) or after end-of-file. A null character is written immediately after the last character read into the array.
|
|
|