From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20150627203011.GB2121@ananda.local> References: <20150627203011.GB2121@ananda.local> Date: Sat, 27 Jun 2015 22:12:09 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d04428e404535980519864fff Subject: Re: [9fans] Help with interrupting fgetc() Topicbox-Message-UUID: 5c49c3e6-ead9-11e9-9d60-3106f5b1d025 --f46d04428e404535980519864fff Content-Type: text/plain; charset=UTF-8 On 27 June 2015 at 21:30, Nils M Holm wrote: > if (!strcmp(s, "interrupt")) { > A minor stylistic point: Plan 9 code almost invariably uses if(strcmp(...) == 0), and for pointers if(p == nil) instead of if(!p). if(!!...) is never used. --f46d04428e404535980519864fff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On 27 June 2015 at 21:30, Nils M Holm <nmh@t3x.org> wrote:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (!strcmp(s, "interrupt"))= {

A minor stylistic point: Plan 9 code alm= ost invariably uses if(strcmp(...) =3D=3D 0), and for pointers if(p =3D=3D = nil) instead of if(!p).
if(!!...) is never = used.=C2=A0
--f46d04428e404535980519864fff--