fork download
  1.  
  2. // C program to demonstrate
  3. // example of strlwr() function
  4.  
  5. #include<stdio.h>
  6. #include<string.h>
  7.  
  8. int main()
  9. {
  10. char str[ ] = "GEEKSFORGEEKS IS THE BEST";
  11.  
  12. // converting the given string into lowercase.
  13. printf("%s\n",strlwr (str));
  14.  
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:13:19: warning: implicit declaration of function ‘strlwr’; did you mean ‘strlen’? [-Wimplicit-function-declaration]
     printf("%s\n",strlwr (str));
                   ^~~~~~
                   strlen
prog.c:13:14: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
     printf("%s\n",strlwr (str));
             ~^    ~~~~~~~~~~~~
             %d
/usr/bin/ld: /home/bE7C8t/cct7B6Ar.o: in function `main':
prog.c:(.text.startup+0x3f): undefined reference to `strlwr'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty