home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_11
/
1011086c
< prev
next >
Wrap
Text File
|
1992-10-05
|
601b
|
30 lines
Loop-break Approach (Raymond Lutz's approach)
static int /* status */
general_routine ()
{
int status = STS_OK;
do {
if (<error condition 1>)
{
status = ERROR_CODE_1;
break;
}
if (<error conditon 2>)
{
status = ERROR_CODE_2;
break;
}
...
<more error checking>
<finally do something>
} while (FALSE);
return (status);
}