Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/20/02 04:33
Read: times


 
#32805 - RE: convert a large hex number to ascii
I'm so exasperated, I could scream! The line after "s += n;" still didn't come through on the last one!

void ltoa( char *s, long bin, unsigned char n )
{
    if (bin >= 0)
        *s = '+';
    else
    {
        *s = '-';
        bin = -bin;
    }

    s += n;
    *s = '\0';

    while (--n)
    {
        *--s = (bin % 10) + '0';
        bin /= 10;
    }
}

List of 9 messages in thread
TopicAuthorDate
convert a large hex number to ascii            01/01/70 00:00      
RE: convert a large hex number to ascii            01/01/70 00:00      
RE: convert a large hex number to ascii            01/01/70 00:00      
RE: convert a large hex number to ascii            01/01/70 00:00      
RE: convert a large hex number to ascii            01/01/70 00:00      
RE: convert a large hex number to ascii            01/01/70 00:00      
RE: convert a large hex number to ascii            01/01/70 00:00      
RE: convert a large hex number to asc            01/01/70 00:00      
RE: convert a large hex number to ascii            01/01/70 00:00      

Back to Subject List