Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: regcmp() Message-ID: <7292@brl-smoke.ARPA> Date: 19 Feb 88 11:37:13 GMT References: <9@vsi.UUCP> <15100006@bucc2> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <15100006@bucc2> brian@bucc2.UUCP writes: >> 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). That statement was true regardless of the various object sizes. (char *)0 has the right size.