🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #687

Re: why &| dont work and its possible to make it work

#687
From: Scott Lurndal
Date: Thu, 22 Oct 2026 19:40
12 lines
1229 bytes
fir <profesor.fir@gmail.com> writes:
>sady this plan of using | & failed becouse its said that here for example
>
>     if(target<0 ||target>=bag_max ||!bag[target].enabled)   {}
>
>if target is -1 in case of | the last one will be evalueated too
>and it may be segfault

If the first test is true, the remaining tests will not be
executed.

If you knew C, you'd have known that.
Technical Details
Message-ID: <%EtCS.3$dnHe.0@fx46.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mail
References: <117mere$3a14a$1@dont-email.me> <11bda5e$vdh3$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: why &| dont work and its possible to make it work
Newsgroups: comp.lang.c
References: <117mere$3a14a$1@dont-email.me> <11bda5e$vdh3$1@dont-email.me>
Lines: 12
Message-ID: <%EtCS.3$dnHe.0@fx46.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 22 Oct 2026 19:40:43 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 22 Oct 2026 19:40:43 GMT
X-Received-Bytes: 995