+ 1

How gets() function works?

1st Mar 2020, 1:31 PM
Sakib Khan
Sakib Khan - avatar
2 Respuestas
+ 1
The C library function char *gets(char *str) reads a line from stdin and stores it into the string pointed to by str
1st Mar 2020, 2:27 PM
Arsenic
Arsenic - avatar
+ 1
Also, in general you shouldn't be using it. Use fgets, or, if available, gets_s.
1st Mar 2020, 5:59 PM
Vlad Serbu
Vlad Serbu - avatar