Deutsch English Français Italiano |
<20240604192547.00003fbd@yahoo.com> 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: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: Interval Comparisons Date: Tue, 4 Jun 2024 19:25:47 +0300 Organization: A noiseless patient Spider Lines: 21 Message-ID: <20240604192547.00003fbd@yahoo.com> References: <v3merq$b1uj$1@dont-email.me> <v3ml0d$bpds$5@dont-email.me> <v3mlrb$c7d5$1@dont-email.me> <v3ms7b$d5sq$1@dont-email.me> <v3mtf2$ct28$2@dont-email.me> <v3n4is$emdc$1@dont-email.me> <DnG7O.8145$_US6.7552@fx44.iad> <v3ndji$fv12$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Date: Tue, 04 Jun 2024 18:25:35 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f25b49b872d8aef0e7d27ed388edfd45"; logging-data="459010"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198+jq8Y2gmEASgMZ2gYUMvVrXhbSOO4pY=" Cancel-Lock: sha1:Rolrc93sL5PfhVyufGgQM70ftUA= X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32) Bytes: 1731 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: =20 > >> On 04/06/2024 13:23, bart wrote: =20 > > =20 > >>> It is incredibly useful: > >>> > >>> =C2=A0=C2=A0 if c in [' ', '\t', '\n'] then ... # whitespace =20 > >=20 > > if (strpbrk(c, " \t\n") !=3D NULL) it_is_whitespace. =20 >=20 > 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) !=3D NULL)