Gets a line from stdin and stores it in the specified location.
#include <stdio.h> char *gets (char *buffer);
buffer
The line consists of all characters up to and including the first newline character \n. gets replaces the newline character with a null character \0 before returning the line.
fgets retains the newline character.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdio.h | stdio.h | clib.lib |