Deutsch English Français Italiano |
<v6igh9$18sp0$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Mon, 8 Jul 2024 22:06:48 -0700 Organization: A noiseless patient Spider Lines: 20 Message-ID: <v6igh9$18sp0$2@dont-email.me> References: <v6bavg$3pu5i$1@dont-email.me> <20240706054641.175@kylheku.com> <v6bfi1$3qn4u$1@dont-email.me> <l9ciO.7$cr5e.2@fx05.iad> <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> <8734ojxlg7.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 09 Jul 2024 07:06:50 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ce358e0d0d9664a700ff455d87f9b3cd"; logging-data="1340192"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+99t6CRTjpTp+lkHICcZbaJPHNvp5A3xs=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:1ywZWzK6vB5DkqLRWVUA8znRIas= In-Reply-To: <8734ojxlg7.fsf@nosuchdomain.example.com> Content-Language: en-US Bytes: 1839 On 7/8/2024 9:01 PM, Keith Thompson wrote: > Tim Rentsch <tr.17687@z991.linuxsc.com> 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. > Who is surely? lol! https://youtu.be/ixljWVyPby0 ;^)