Article View: comp.lang.c
Article #685Re: why &| dont work and its possible to make it work
From: fir
Date: Thu, 22 Oct 2026 20:46
Date: Thu, 22 Oct 2026 20:46
22 lines
1960 bytes
1960 bytes
Scott Lurndal pisze:
> 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.
>
and now what? i wouldnt say if some dont know sole pice of c dont know c
but as you do it bounces from the wall and hits you in the face, huh?
;c
Technical Details
Message-ID:
<11bdsmd$176pn$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-mailReferences:
<117mere$3a14a$1@dont-email.me> <11bda5e$vdh3$1@dont-email.me> <%EtCS.3$dnHe.0@fx46.iad>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: fir <profesor.fir@gmail.com> Newsgroups: comp.lang.c Subject: Re: why &| dont work and its possible to make it work Date: Thu, 22 Oct 2026 22:46:02 +0200 Organization: A noiseless patient Spider Lines: 22 Message-ID: <11bdsmd$176pn$1@dont-email.me> References: <117mere$3a14a$1@dont-email.me> <11bda5e$vdh3$1@dont-email.me> <%EtCS.3$dnHe.0@fx46.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 22 Oct 2026 20:46:06 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1284919"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oXE5Mml7d/Rw+G4RCt1KeCQyVsYGs0Pg="; posting-host="0b30788676943a83f79a25d06a15ee98" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 Cancel-Lock: sha1:t40aB5BJfNCw0FpXYOOhUij7uBM= sha256:R9J4XT/tS6A9YEo139IsudS7uBsY1/WwKoMsO37lWbM= sha1:GQz1ZmMtsKGMlRxIaPXeaqCE7po= sha256:XioY4jyWEtB4Hdh8KV9eFKswGWuPCmyWvafr3MHYujQ= In-Reply-To: <%EtCS.3$dnHe.0@fx46.iad>