Next: puts Up: Whole Lines of Previous: Whole Lines of

gets

gets reads a whole line of input into a string until a newline or EOF is encountered. It is critical to ensure that the string is large enough to hold any expected input lines.

When all input is finished, NULL as defined in stdio.h is returned.


craa27@strath.ac.uk
Tue Jan 17 11:40:37 GMT 1995