Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!bradley!bucc2!brian From: brian@bucc2.UUCP Newsgroups: comp.unix.questions Subject: Re: regcmp() Message-ID: <15100006@bucc2> Date: 18 Feb 88 03:41:00 GMT References: <9@vsi.UUCP> Lines: 21 Nf-ID: #R:vsi.UUCP:9:bucc2:15100006:000:975 Nf-From: bucc2.UUCP!brian Feb 17 21:41:00 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@seas.ucla.edu (309) 691-5175 ICBM: 40 40' N 89 34' W