fgets()

This is a file I/O function, also hardware dependent. It is not implemented in this Compiler.

Syntax
  #include <stdio.h>

  
  char *fgets(char *s, int n, FILE *f);

  
Description

fgets() reads a string of at most n-1 characters from file f into s. Immediately after the last character read, fgets() appends a '\0'. If fgets() reads a line break ( '\n') or reaches the end of the file before having read n-1 characters, the following happens:

Return

NULL, if an error occurred; s otherwise.

See also

fgetc()

fputs()