| 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 was unsafe and is no longer available.
| [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_s() may also fail and set errno for any of the errors specified for the routine getchar(3).
| FGETS (3) | December 6, 2024 |
| Main index | Section 3 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | If at first you don't succeed, you must be a programmer. | ” |