Path: utzoo!mnetor!uunet!mcvax!ukc!stc!idec!alice!fox From: fox@alice.marlow.reuters.co.uk (Paul Fox) Newsgroups: comp.unix.questions Subject: Re: regcmp() Message-ID: <292@alice.marlow.reuters.co.uk> Date: 3 Mar 88 17:49:35 GMT References: <9@vsi.UUCP> <15100006@bucc2> Reply-To: fox@alice.UUCP (Paul Fox) Organization: Reuters Ltd PLC, Marlow, Bucks, England Lines: 20 In article <15100006@bucc2> brian@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@alice.marlow.reuters.co.uk