Main index | Section 3 | 日本語 | Deutsch | Options |
#include <stdio.h>
The gets_s() function is equivalent to fgets() with a stream of stdin, except that the newline character (if any) is not stored in the string.
The gets() function is equivalent to fgets() with an infinite size and a stream of stdin, except that the newline character (if any) is not stored in the string. It is the caller's responsibility to ensure that the input line, if any, is sufficiently short to fit in the string.
[EBADF] | |
The given stream is not a readable stream. | |
The function fgets() may also fail and set errno for any of the errors specified for the routines fflush(3), fstat(2), read(2), or malloc(3).
The function gets() and gets_s() may also fail and set errno for any of the errors specified for the routine getchar(3).
FGETS (3) | April 3, 2018 |
Main index | Section 3 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.