HttpResponseParser/http_response_parser.h
static int http_parse_response_status_code(HttpResponse_t *h,char *status_line)
{
    int i = 9, x = 0;
    char statuscode[4] = {0};

    for (i;i<=11;i++)
    {
        statuscode[x] = status_line[i];
        x++;
    }

    h->headers->status->status_code = to_integer(statuscode);
    
    return (1);
}
////////////////////////////////////////////////////////
// function for parse status code in status line
///////////////////////////////////////////////////////
function for parse status code in status line
function for parse status code in status line
static int http_parse_response_status_code(HttpResponse_t *h,char *status_line)
{
    int i = 9, x = 0;
    char statuscode[4] = {0};
    for (i;i<=11;i++)
    {
        statuscode[x] = status_line[i];
        x++;
    }
    h->headers->status->status_code = to_integer(statuscode);
    return (1);
}
static int http_parse_response_status_code ( HttpResponse_t * h , char * status_line ) { int i = 9 , x = 0 ; char statuscode [ 4 ] = { 0 } ; for ( i ; i <= 11 ; i ++ ) { statuscode [ x ] = status_line [ i ] ; x ++ ; } h -> headers -> status -> status_code = to_integer ( statuscode ) ; return ( 1 ) ; }
function for parse status code in status line
function for parse status code in status line