Herbert Schildt 11/11 
Author Message
 Herbert Schildt 11/11

(Continued from previous message)

##a check for the presence of a number before calling one of the
##a conversion functions.

Actually, it is quite hard to make such a check, but luckily it is also unneces

7.10.2

The example appears to assume that time_t is an integral type, and so assigns t

    unsigned int random_from_time (time_t t)
    {
        unsigned int i, j, k;
        char *p;

        i = 0;
        p = (char *) &t;
        /* Divide t up into pieces each the size of an unsigned int */
        for (k = 0; k + sizeof j <= sizeof t; k += sizeof j)
        {
            /* Copy the bits of the piece into j and add the value to i */
            memcpy ((char *) &j, p + k, sizeof j);
            i += j;
        }
        /* Do the same with any remnant (e.g. if j is 4 bytes and t is 11) */
        if (k < sizeof t)
        {
            j = 0;
            memcpy ((char *) &j, p + k, sizeof t - k);
            i += j;
        }
        return i;
    }

7.10.7 and 7.10.8

##a Since multibyte characters are implementation-specific, you
##a should refer to your compiler's user manual for details.

There is a lot that can be said about multibyte and wide characters without hav

7.11.4

The annotations use the term "rearrange" when discussing strxfrm().a It should

The example compares two arrays of floats using memcmp.a While such a compariso

7.12.2.3

There is no description of mktime and how it can be used to solve problems like

------------------------------------------------------------------------

---
 * QMPro 1.53 * User - a technical term used by computer pros. See idiot.

---
This message originated from:  ----------        Selective Source BBS
                                    -------    {*filter*}ia Beach, {*filter*}ia
                                         -----      (804) 471 6776



Wed, 20 Jan 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Herbert Schildt 9/11

2. Herbert Schildt 1/11

3. Herbert Schildt 8/11

4. Herbert Schildt 10/11

5. Herbert Schildt 4/11

6. Herbert Schildt 7/11

7. Herbert Schildt 6/11

8. Herbert Schildt 5/11

9. Herbert Schildt 3/11

10. Herbert Schildt 2/11

11. Keep Surfing Safe !111111!!!1!!!!!!!!!1!!1|1!11!11 6521

12. C compiler for PDP-11 (RSX-11 M+)

 

 
Powered by phpBB® Forum Software