Article View: comp.lang.c
Article #254Re: compare literals / if( "cat"== "dog") {}
From: tTh
Date: Mon, 12 Oct 2026 00:31
Date: Mon, 12 Oct 2026 00:31
15 lines
1803 bytes
1803 bytes
On 10/12/26 00:50, Keith Thompson wrote:
> There's a proposal to add streq() to C2y, so streq(a, b) is equivalent
> to (strcmp(a, b) == 0). I find that clearer than your areEQUAL macro.
>
> https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3567.pdf
[like]
--
** **
* tTh des Bourtoulots *
* http://maison.tth.netlib.re/ *
** **
Technical Details
Message-ID:
<11ah9p6$114h$1@news.gegeweb.eu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!news.gegeweb.eu!gegeweb.org!.POSTED.2a02-8434-a500-0b01-0fb8-35a0-3393-2651.rev.sfr.net!not-for-mailReferences:
<11ae962$2365v$1@dont-email.me> <1791743331-5857@newsgrouper.org> <1791747021-5857@newsgrouper.org> <11ah3sj$329bt$3@kst.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!news.gegeweb.eu!gegeweb.org!.POSTED.2a02-8434-a500-0b01-0fb8-35a0-3393-2651.rev.sfr.net!not-for-mail
From: tTh <tth@none.invalid>
Newsgroups: comp.lang.c
Subject: Re: compare literals / if( "cat"== "dog") {}
Date: Mon, 12 Oct 2026 02:31:34 +0200
Organization: gni?
Message-ID: <11ah9p6$114h$1@news.gegeweb.eu>
References: <11ae962$2365v$1@dont-email.me> <1791743331-5857@newsgrouper.org>
<1791747021-5857@newsgrouper.org> <11ah3sj$329bt$3@kst.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 12 Oct 2026 00:31:34 -0000 (UTC)
Injection-Info: news.gegeweb.eu; posting-account="tontonth@usenet.local"; posting-host="2a02-8434-a500-0b01-0fb8-35a0-3393-2651.rev.sfr.net:2a02:8434:a500:b01:fb8:35a0:3393:2651";
logging-data="33937"; mail-complaints-to="abuse@gegeweb.eu"
User-Agent: Mozilla Thunderbird
In-Reply-To: <11ah3sj$329bt$3@kst.eternal-september.org>
Cancel-Lock: sha256:+Fd7dcdjCnDe+ByqAw7/vcBHHZqmUzu5wduBgMEdCDg=
Content-Language: en-US