Site hosted by Angelfire.com: Build your free website today!



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 important 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.