implicit declaration of function gets | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

implicit declaration of function gets

working on the military challenge, but when the compiler reaches gets or strlwr it gives an error of implicit declaration (i do have string.h included)

17th Jan 2020, 6:59 AM
Diae HAJIB
Diae HAJIB - avatar
1 Answer
+ 2
1. `gets` is considered dangerous, avoid using it best you can. https://bytes.com/topic/c/answers/737528-why-usage-gets-dangerous 2. `strlwr` and `strupr` are not part of the standard library, it may or may not be implemented in the string.h header file. See the note on the following page: https://fresh2refresh.com/c-programming/c-strings/c-strlwr-function/
17th Jan 2020, 9:18 AM
Ipang