Sujet : Re: integer divided by zero
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 26. Apr 2025, 18:01:11
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250426095835.95@kylheku.com>
References : 1 2 3 4 5
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2025-04-26, Kenny McCormack <
gazelle@shell.xmission.com> wrote:
int signal_error(void) {
int zero = 0;
return 1/zero;
}
>
Wouldn't it be easier just to use raise(3)?
This is being described elsethread as something portable
across languages, not all of which have access to signal-related
functions.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca