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);
}
/* End of File */