Functions HI-TECH C FGETS
#include <stdio.h> char * fgets(char * s, size_t n, char * stream)
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.