language: C99 strict (gcc-4.7.2)
date: 267 days 17 hours ago
link:
visibility: private
1
2
3
4
5
6
7
8
9
10
11
12
#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);
}
 
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