regcmp()

brian at bucc2.UUCP brian at bucc2.UUCP
Thu Feb 18 13:41:00 AEST 1988


> > 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).
Not a good assumption to make, eh? I do a great deal of programming using
Microsoft C 5.0 on IBM PEE CEE's. In large model, pointers are four bytes
long. However, constant integer expessions are ints, and an int is only two
bytes long.

...............................................................................

  When the going gets weird, the weird turn pro.

  Brian Michael Wendt       UUCP: {cepu,ihnp4,uiucdcs,noao}!bradley!brian
  Bradley University        ARPA: cepu!bradley!brian at seas.ucla.edu
  (309) 691-5175            ICBM: 40 40' N  89 34' W



More information about the Comp.unix.questions mailing list