gets()

This is a file I/O function, also hardware dependent. It is not implemented in this Compiler.

Syntax
  #include <stdio.h>

  
  char *gets(char *s);

  
Description

gets() reads a string from stdin and stores it in s. It stops reading when it reaches a line break or EOF character, but does not append this character to the string. gets() terminates the string with zero.

If the function reads EOF before any other character, it sets stdin's end-of-file flag and returns unsuccessfully without changing string s.

Return

NULL, if an error occurred; s otherwise.

See also

fgetc()

puts()