Gets Fgets input a string #include <stdio.h> char *gets char *s char *fgets char *s int n FILE *fp Description Placeholder Caveats The different treatment of the "\n" by these functions is retained here for portability reasons. Diagnostics Both functions return NULL on end-of-file or error. See Also puts(), getc(), scanf(), fread()