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


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.
Tue Jan 17 11:40:37 GMT 1995