#include <stdio.h>#define _GNU_SOURCE#include <string.h> int main(){ char buffer[100] = "Something-something Content-Length: nnnn"; char *tmpcp; tmpcp = strcasestr(buffer, "Content-Length:"); printf("%p \n%p\n",tmpcp,buffer);}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!