Thanks for help with the carry byte, I'm trying this:

void addstring( char result[], char increment[], int length )
{  int x, sum = 0;
   for(  x = length-1; x >= 0; x-- )
   {  result[x] = sum += result[x] + increment[x];
      sum >>= 8;
   }
}


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact [javascript protected email address].