Why this program showing error on sololearn coding ground while runs on windows with same compiler version gcc 9.2.0 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why this program showing error on sololearn coding ground while runs on windows with same compiler version gcc 9.2.0

#include <stdio.h> #include <string.h> int main() { char str[100]; fgets(str,100,stdin); printf ("%s",strlwr(str)); return 0; }

14th Jan 2020, 11:45 AM
Somvir Dhaka
Somvir Dhaka - avatar
2 Answers
+ 4
`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/
14th Jan 2020, 11:59 AM
Ipang
+ 1
Thanks
14th Jan 2020, 2:54 PM
Somvir Dhaka
Somvir Dhaka - avatar