HttpResponseParser/http_response_parser.h
int strpos(char *hay,char *needle,int offset)
{
    char haystack[strlen(hay)];
    
    strncpy(haystack,hay+offset,strlen(hay)-offset); // copy hay+offset in haystack buffer
    
    char *ptr = strstr(haystack,needle); // search needle in haystack with offset
    
    if (ptr)
        return (ptr - haystack+offset); // return position
    
    return (1);
}
////////////////////////////////////////////////////////
// function for get position in string
///////////////////////////////////////////////////////
function for get position in string
function for get position in string
int strpos(char *hay,char *needle,int offset)
{
    char haystack[strlen(hay)];
    strncpy(haystack,hay+offset,strlen(hay)-offset); 
    char *ptr = strstr(haystack,needle); 
    if (ptr)
        return (ptr - haystack+offset); 
    return (1);
}
int strpos ( char * hay , char * needle , int offset ) { char haystack [ strlen ( hay ) ] ; strncpy ( haystack , hay + offset , strlen ( hay ) - offset ) ; char * ptr = strstr ( haystack , needle ) ; if ( ptr ) return ( ptr - haystack + offset ) ; return ( 1 ) ; }
function for get position in string
function for get position in string
// copy hay+offset in haystack buffer // search needle in haystack with offset // return position