New course! Every coder should learn Generative AI!
Try a free lesson0
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)
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/