Again i have the following
Code:
long unsigned int StringtoNum( char [] );

int main()
{
    //declare variables
    const char cNumbers[4][51] = {
    "37107287533902102798797998220837590246510135740250",
    "46376937677490009712648124896970078050417018260538",
    "74324986199524741059474233309513058123726617309629",
    "91942213363574161572522430563301811072406154908250",
     };

    int i, j, k, iNumCarry;
    long unsigned int iTotal = 0, iTenDigits[4] = { 0 };
    char cStrtoNum[11] = { '\0' };

    for ( i = 0; i < 4; i++ )
    {
        for ( j = 40; j < 51; j++ )
        {
            cStrtoNum[j-40] = cNumbers[i][j];
        }
        iTenDigits[i] = StringtoNum( cStrtoNum );
        printf("%s %lu\n", cStrtoNum, iTenDigits[i]);
    }

    return 0;
}

long unsigned int StringtoNum( char strConvert[] )
{
    long unsigned int iNumConverted = 0;

    iNumConverted = atoi( strConvert );

    return iNumConverted;
}
the output is as follows
Code:
0135740250 135740250
7018260538 18446744072137877562
6617309629 18446744071736926653
6154908250 1859940954

Process returned 0 (0x0)   execution time : 0.001 s
Press ENTER to continue.
as you can see the first number works fine the rest are utter garbage