Everything

gets


Read character string from standard input

Remark

These functions are not supported by the debugging functions which CS+ provides.

[Classification]

Standard library

[Syntax]

#include <stdio.h>

char *gets(char *s);

[Return value]

s is returned.

Error return does not occur.

[Description]

This function inputs characters from the standard input/output stdin until a new-line character is detected and stores them in s. The new-line character that was input is discarded, and an end-of-string null character is stored at the end in s.