SYNOPSIS
#include <stdio.h>
char *gets(char *s);
DESCRIPTION
The
PARAMETERS
RETURN VALUES
If successful,
On failure, errno is set to one of the following values:
- EACCES
-
Another process has the file locked.
- EBADF
-
stdin is not a valid stream opened for reading.
- EINTR
-
A signal interrupted the call.
- EIO
-
An input error occurred.
- EISDIR
-
The open object is a directory, not a file.
- ENOMEM
-
Memory could not be allocated for internal buffers.
- ENXIO
-
A device error occurred.
- EOVERFLOW
-
The file is a regular file and an attempt was made to read at or beyond the offset maximum associated with the corresponding stream.
- EWOULDBLOCK
-
The underlying file descriptor is a non-blocking socket and no data is ready to be read.
CONFORMANCE
ANSI/ISO 9899-1990.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
For files opened in text mode, the character sequence carriage-return linefeed is translated into linefeed. No such translation occurs for files opened in binary mode.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
MKS Toolkit 9.2 Documentation Build 16.