From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nils M Holm" Date: Sat, 27 Jun 2015 23:21:14 +0200 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20150627212114.GA5243@ananda.local> References: <20150627203011.GB2121@ananda.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [9fans] Help with interrupting fgetc() Topicbox-Message-UUID: 5c526db6-ead9-11e9-9d60-3106f5b1d025 On 2015-06-27T22:12:09+0100, Charles Forsyth wrote: > 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. Thanks, appreciated! -- Nils M Holm < n m h @ t 3 x . o r g > www.t3x.org