regcmp()

Paul Fox fox at alice.marlow.reuters.co.uk
Fri Mar 4 03:49:35 AEST 1988


In article <15100006 at bucc2> brian at bucc2.UUCP writes:
>
>> > The problem is with what you are passing.  You are passing (char *)0 instead
>> > of (char *)NULL.  As I recall, Microport #defines NULL to be 0L instead of
>> > just 0.  This is an important difference.
>> 
>> Not if you cast it to "char *", it isn't!  Passing "(char *)0" is quite
>> sufficient, unless the compiler is horribly broken.
>
>  Tsk, tsk, tsk. This statment is true if sizeof(int) == sizeof(pointer).

Well, (char *) 0 and (char *) 0L are the SAME. Looks like the compiler
is broken. 
----------------------
     //        o      All opinions are my own.
   (O)        ( )     The powers that be ...
  /    \_____( )
 o  \         |
    /\____\__/      
  _/_/   _/_/         UUCP:     fox at alice.marlow.reuters.co.uk



More information about the Comp.unix.questions mailing list