gets funtion is not working in c language with linux software | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

gets funtion is not working in c language with linux software

string.h is included and warning

30th Oct 2018, 9:14 AM
Shobith Shobi
Shobith Shobi - avatar
1 Answer
+ 6
gets() is deprecated. Use fgets(). http://www.cplusplus.com/reference/cstdio/fgets/
30th Oct 2018, 9:23 AM
Hatsy Rei
Hatsy Rei - avatar