Search:

Type: Posts; User: itCbitC

Search: Search took 0.02 seconds.

  1. Replies
    20
    Views
    50,638

    that code snippet has been taken from an IRIX w/s.

    that code snippet has been taken from an IRIX w/s.
  2. Replies
    20
    Views
    50,638

    #if defined(_ANSI_NULL_POINTER) &&...

    #if defined(_ANSI_NULL_POINTER) && defined(__STDC__)
    #define NULL ((void *)0L)
    #else
    #define NULL 0L
    #endif
  3. Replies
    20
    Views
    50,638

    agree for the benefit of the OP we should take it...

    agree for the benefit of the OP we should take it offline ;)
    btw i replied to your PM so whenever you get a chance...
  4. Replies
    20
    Views
    50,638

    agree that long int 0L by itself is not a pointer...

    agree that long int 0L by itself is not a pointer and by the same argument neither is int 0L unless cast.
    imo only difference is the precision and pedantic in this context refers purely to the...
  5. Replies
    20
    Views
    50,638

    and why not? go figure :D

    and why not? go figure :D
  6. Replies
    20
    Views
    50,638

    Correct as the NULL symbol can be redefined...

    Correct as the NULL symbol can be redefined elsewhere thereby taking precedence over its definition in the C library include files.

    I concur

    #define NULL ((void *)0L) now that's pedantic :D
  7. Replies
    20
    Views
    50,638

    IMHO that would be decided internally by the...

    IMHO that would be decided internally by the machine's native character set ie ASCII or EBCDIC instead of by the compiler.
  8. Replies
    20
    Views
    50,638

    Look at the memset() call to initialize the array...

    Look at the memset() call to initialize the array of task structs or a particular element thereof to NULL.
Results 1 to 8 of 8