OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-51
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1520 /**************************************************************/
1521
1522 remote_file_update_cmplt = TRUE;
1523
1524 break;
1525
1526 default: /* Unknown status value */
1527
1528 printf ("Unknown Status\n");
1529 APS_DISCARD_ ( cepi );
1530 exit (EXIT_FAILURE);
1531
1532 break;
1533
1534 } /* end of case */
1535
1536 } /* check_status */
1537
1538
1539 #pragma PAGE "CHECK_ERROR"
1540 /*********************************************************************/
1541 /* */
1542 /* Name: check_error */
1543 /* */
1544 /* Description: The following procedure checks the error code */
1545 /* returned from an FTM or APS procedure. If it */
1546 /* detects an error, the procedure displays the error */
1547 /* code, discards the association, and the program */
1548 /* exits. Additional application-specific error */
1549 /* handling or recovery could be implemented if */
1550 /* required by an application. */
1551 /* */
1552 /* Input: None */
1553 /* */
1554 /* Output: Error message to the terminal */
1555 /* */
1556 /*********************************************************************/
1557
1558 void check_error ()