fork download
  1. #include <stdio.h>
  2. #define _GNU_SOURCE
  3. #include <string.h>
  4.  
  5. int main()
  6. {
  7. char buffer[100] = "Something-something Content-Length: nnnn";
  8. char *tmpcp;
  9. tmpcp = strcasestr(buffer, "Content-Length:");
  10. printf("%p \n%p\n",tmpcp,buffer);
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘main’:
prog.c:9: error: implicit declaration of function ‘strcasestr’
prog.c:9: error: assignment makes pointer from integer without a cast
stdout

Standard output is empty