bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pointer addition and arrays


From: Paul Eggert
Subject: Re: pointer addition and arrays
Date: Thu, 14 Dec 2023 17:00:26 -0800
User-agent: Mozilla Thunderbird

On 12/3/23 05:15, Andreas F. Borchert wrote:
You will have
then to possibly live with annoying warnings and odd behaviours.

The C standard says that when P is a null pointer, P==P must be true whereas P<=P has undefined behavior. However, in practice any implementation where P==P succeeds but P<=P fails is a pedantic implementation that is merely enforcing what are arguably bugs in the standard. Let's not waste time worrying about implementations like that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]