HttpResponseParser/http_response_parser.h
long to_integer(char *number)
{
    long todec = 0;

    for (int i = 0;number[i] >= '0' && number[i] <= '9';i++)
    {
        todec *= 10;
        todec += number[i]++ & 0xF;
    }

    return (todec);
}
////////////////////////////////////////////////////////
// function like atoi for char to long
///////////////////////////////////////////////////////
function like atoi for char to long
function like atoi for char to long
long to_integer(char *number)
{
    long todec = 0;
    for (int i = 0;number[i] >= '0' && number[i] <= '9';i++)
    {
        todec *= 10;
        todec += number[i]++ & 0xF;
    }
    return (todec);
}
long to_integer ( char * number ) { long todec = 0 ; for ( int i = 0 ; number [ i ] >= ' ' && number [ i ] <= ' ' ; i ++ ) { todec *= 10 ; todec += number [ i ] ++ & 0xF ; } return ( todec ) ; }
function like atoi for char to long
function like atoi for char to long