🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1231

Re: variadic min and max, (any some and none, cat and more)

#1231
From: Lawrence D’Oliveiro
Date: Sun, 01 Nov 2026 02:29
9 lines
1638 bytes
On Sat, 31 Oct 2026 17:33:24 +0100, Rosario19 wrote:

> I think would be better opertate in the INT_MAX terminate list of
> integers (so the range would be INT_MIN..(INT_MAX-1)):

min() should terminate on hitting INT_MIN, because any subsequent
arguments would make no difference to the result.

Similarly, max() should terminate on hitting INT_MAX.
Technical Details
Message-ID: <11c686b$1kr0t$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bes8b$1gncr$1@dont-email.me> <11bk09r$3acgl$1@dont-email.me> <i06cel5b0c5rllrhc4cc1c8gld5ovgvj6u@4ax.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: variadic min and max, (any some and none, cat and more)
Date: Sun, 1 Nov 2026 02:29:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <11c686b$1kr0t$1@dont-email.me>
References: <11bes8b$1gncr$1@dont-email.me> <11bk09r$3acgl$1@dont-email.me>
	<i06cel5b0c5rllrhc4cc1c8gld5ovgvj6u@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Nov 2026 02:29:32 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1731613"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19WYdMMHylMhQpV2SUNS/eZ"; posting-host="e3160788d8ee1ce0c3252f1aed4b293c"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:uanUF/1MzzkXTQzDV6S92uRWOhw= sha256:6MeUe1JWFTp4DlsC0D1TjV8+lOb3AjD4NjuuQOI9ERU=
	sha1:6m6LBvX8nn8QRoko/LjWGcL5ne4= sha256:toDuKgTRjlLN+jQJ6b1BNahK0THLpZaKC3smYs97C/Y=