Synopsis

#include <stdio.h>

char *gets(char *str);

Description

  • Reads a line from stdin and stores it into the string pointed to by, str. It stops when either the newline character is read
  • or when the end-of-file is reached, whichever comes first.

Return value

Errors