From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Ralph Corderoy Message-ID: <18d7.3ed20498.ee7f2@blake.inputplus.co.uk> References: <20030501160047.7231.qmail@g.bio.cse.psu.edu>, <3EB90B63.30401@ameritech.net> Subject: Re: [9fans] same functions everywhere Date: Tue, 27 May 2003 09:22:18 +0000 Topicbox-Message-UUID: b9016b56-eacb-11e9-9e20-41e7f4b1d025 Hi northern snowfall, > // returns true if all slots EQUATE to val > // returns false if all slots do NOT equate to val s/all slots do/any slot does/ > // side effects: equates *pos to the first slot that tests false > int > gotvalue/*?*/(int * a, uint len, int val, uint * pos) > { > uint ua; > for(ua = 0; ua < len; ua++) { > if(a[ua] != val) { > *pos = ua; > return false; > } > } > return true; > } 99% of code comments in the world are worthless. Tact-sucks-ly, -- Ralph Corderoy. http://inputplus.co.uk/ralph/ http://troff.org/