INtime SDK Help
gets

Gets a line from stdin and stores it in the specified location.

#include <stdio.h>

char *gets (char *buffer);

Parameters

buffer
Storage location for input string.

Remarks

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.

Return Values

Returns its argument.
Success.
A null pointer on error or end-of-file. Use ferror or feof to determine which one has occurred.
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdio.h stdio.h clib.lib

See Also

ferror, feof, fgets, fputs, puts