Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Sort of trivial code challenge - may be interesting to you anyway Date: Tue, 03 Mar 2026 15:51:08 -0800 Organization: A noiseless patient Spider Lines: 14 Message-ID: <865x7ceakz.fsf@linuxsc.com> References: <10n80sc$3soe4$1@dont-email.me> <86v7feei2e.fsf@linuxsc.com> <10o53k6$1i0ef$2@dont-email.me> <86ms0peby6.fsf@linuxsc.com> <10o6nci$21m76$1@dont-email.me> <86a4wpdmfi.fsf@linuxsc.com> <20260303235636.00007198@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 03 Mar 2026 23:51:11 +0000 (UTC) Injection-Info: dont-email.me; posting-host="9dc790098ce30bad4f358538e3d50880"; logging-data="2621457"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ISc+pz0ZiWEWrV5nsW2nUav9OUmHDvNA=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:ZruPcDcqtvenFadl9qR9XuYOz2c= sha1:oMR1mbudJ9PbR3Sz+Z1RFsr2Xk8= Xref: csiph.com comp.lang.c:396745 Michael S writes: > On Tue, 03 Mar 2026 06:20:33 -0800 > Tim Rentsch wrote: > >> My rule is not to post my own code until others have made a good >> faith effort on the challenge. > > One question before I start thinking: is setjmp/longjmp also diallowed? setjmp and longjmp are both part of the standard C library, so yes calling them is allowed. (The C standard calls setjmp a macro, but the Synopsis describes it using a function interface, so it seems natural to count it as a function.)