Sujet : Re: Interval Comparisons
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 04. Jun 2024, 17:25:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240604192547.00003fbd@yahoo.com>
References : 1 2 3 4 5 6 7 8
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Tue, 4 Jun 2024 16:58:43 +0100
bart <
bc@freeuk.com> wrote:
On 04/06/2024 16:27, Scott Lurndal wrote:
David Brown <david.brown@hesbynett.no> writes:
On 04/06/2024 13:23, bart wrote:
It is incredibly useful:
>
if c in [' ', '\t', '\n'] then ... # whitespace
if (strpbrk(c, " \t\n") != NULL) it_is_whitespace.
That doesn't do the same thing. In my example, c is a character, not
a string.
>
Will that be be better?
if (memchr(" \t\n", c, 3) != NULL)