#include <stdio.h>
char *gets (
char *s
)
|
Arguments
s |
Pointer to destination buffer |
Return Value
A pointer to the character string s is returned if the function
was successful. NULL is returned in case of end-of-file or error.
Explanation
A line is read from the standard input stream (stdin) and placed in the
buffer pointed to by s. The end of line is indicated by a newline
character. The newline is discarded and replaced by a null character at
the end of the string pointed to by s.
See Also
getc(), getchar()
|