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: Taming The Switch-Statement Date: Sun, 11 Oct 2026 04:26:01 -0700 Organization: A noiseless patient Spider Lines: 7 Message-ID: <864iesjx6e.fsf@linuxsc.com> References: <119qf6l$2rmg3$1@dont-email.me> <11ac0mi$19kfd$1@dont-email.me> <11ac2jv$1a84t$1@dont-email.me> <11ac783$1bkuo$1@kst.eternal-september.org> <11ad5eq$1l8hg$1@dont-email.me> <11ad9fg$cjm0$4@dont-email.me> <11addhr$1oakb$1@dont-email.me> <11aduuk$cjlv$1@dont-email.me> <20261010220212.000063fd@yahoo.com> <11ae56o$cjlv$4@dont-email.me> <20261010230355.00005189@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 11 Oct 2026 11:26:02 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2683269"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yYpLO11hoybO1WnQg8/lGILu3JQc+wW8="; posting-host="1098c1f1b6b0f5d684612506fbd55361" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:CYxgbA5LL6N+ga8Vp6mzf26nI3M= sha1:tgJRPNVo5ahvM/d0XToIGROz3vM= sha256:YQ9xwyvHZRdNJ8ovGb5jxgvK34kWxEyMGx2ZcmSKulU= sha1:tacn+NXY9X5mPhWORLK9FdjIxWY= sha256:QW626sYxvg4DCeo63yLyK8xzEF8lwMpt7nuVQZygpOk= Xref: csiph.com comp.lang.c:402975 Michael S writes: > The cases where I want to break out of the loop from the switch in > the body of the loop are very common. That surprises me. Can you post a representative example (and ideally not overly long)?