Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!.POSTED!not-for-mail From: Willem Newsgroups: comp.lang.c Subject: Re: Error returns and repeated code, GOTOs, etc. Date: Wed, 30 May 2012 11:04:48 +0000 (UTC) Organization: Stack Usenet News Service Lines: 20 Message-ID: References: <7e54cf3c-d514-407b-a9b6-c0009589d242@ra8g2000pbc.googlegroups.com> <1159b302-6dba-4642-bfc3-f5fd90f73f0c@googlegroups.com> NNTP-Posting-Host: toad.stack.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: mud.stack.nl 1338375888 44089 2001:610:1108:5010::135 (30 May 2012 11:04:48 GMT) X-Complaints-To: abuse@stack.nl NNTP-Posting-Date: Wed, 30 May 2012 11:04:48 +0000 (UTC) User-Agent: slrn/0.9.9p1 (FreeBSD) Xref: csiph.com comp.lang.c:21533 Malcolm McLean wrote: ) You want ) ) rv = BigNum_Initilaize(&a); ) if(rv) ) goto error_exit; ) rv = BigNum_Add(&a, &b, &c); ) if(!rv) ) goto error_exit; Why one positive and one negative test? Is that a typo? SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'm paranoid, don't you ! #EOT