Sujet : Re: Hex string literals (was Re: C23 thoughts and opinions)
De : richard.nospam (at) *nospam* gmail.invalid (Richard Harnden)
Groupes : comp.lang.cDate : 18. Jun 2024, 20:25:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4sjf3$1fm4h$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
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 <bc@freeuk.com> 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