Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Mon, 08 Jul 2024 21:01:44 -0700 Organization: None to speak of Lines: 16 Message-ID: <8734ojxlg7.fsf@nosuchdomain.example.com> References: <20240706054641.175@kylheku.com> <877cdyuq0f.fsf@bsb.me.uk> <2ckiO.19403$7Ej.4487@fx46.iad> <87plrpt4du.fsf@bsb.me.uk> <9bCiO.7108$sXW9.3805@fx41.iad> <877cdwu9s1.fsf@nosuchdomain.example.com> <20240708222804.00001654@yahoo.com> <86le2b9ru6.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Tue, 09 Jul 2024 06:01:44 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7b16d6b5d15f52486179f3d68f3df5a8"; logging-data="1320788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bKjQXk5LCXsZPlrB9LvSQ" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:r2V0DIFdzgzz21wWlClUlTSTe4A= sha1:jZmiLNFMswCVnI3e3NWVCo1N3dg= Bytes: 1700 Tim Rentsch writes: [...] > This posting has inspired me to try using (long)0.0 > whenever a null pointer constant is needed. As for > example > > (void*){ (long)0.0 } > > as an argument to a variadic function where a pointer > is expected. But surely ((void*)('/'/'/'-'/'/'/')) is more elegant. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */