Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Richard Harnden Newsgroups: comp.lang.c Subject: Re: Hex string literals (was Re: C23 thoughts and opinions) Date: Tue, 18 Jun 2024 19:25:38 +0100 Organization: A noiseless patient Spider Lines: 32 Message-ID: References: <87ikz11osy.fsf@nosuchdomain.example.com> <87plt8yxgn.fsf@nosuchdomain.example.com> <87cyp6zsen.fsf@nosuchdomain.example.com> <874jahznzt.fsf@nosuchdomain.example.com> <87v82b43h6.fsf@nosuchdomain.example.com> <87iky830v7.fsf_-_@nosuchdomain.example.com> <20240618024703.632@kylheku.com> Reply-To: nospam.harnden@invalid.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 18 Jun 2024 20:25:39 +0200 (CEST) Injection-Info: dont-email.me; posting-host="cf2ed28ae984c38e3ff3a1167d04c39c"; logging-data="1562769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VQ2ZupGE84RHk/kc1rEEVxkAmRZf88PY=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:nxf1+ht/KbPnaXNyndwoUTVZKXU= In-Reply-To: Content-Language: en-US Bytes: 2620 On 18/06/2024 16:21, David Brown wrote: > On 18/06/2024 15:56, Scott Lurndal wrote: >> Kaz Kylheku <643-408-1753@kylheku.com> writes: >>> On 2024-06-17, bart wrote: >>>> AFAIK nobody uses octal anymore. >>> >>> Unix shell and C programmers fairly often use octal unintentionally, >> >> Perhaps you do.   Don't speak for others, please. >> > > Others do it too.  Perhaps not "fairly often", but it certainly happens. > This has bit me ... $ ping -c 1 192.168.1.17 PING 192.168.1.17 (192.168.1.17) 56(84) bytes of data. 64 bytes from 192.168.1.17: icmp_seq=1 ttl=64 time=0.097 ms --- 192.168.1.17 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.097/0.097/0.097/0.000 ms $ ping -c 1 192.168.001.017 PING 192.168.001.017 (192.168.1.15) 56(84) bytes of data. From 192.168.1.17 icmp_seq=1 Destination Host Unreachable --- 192.168.001.017 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms