OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-148
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1636 /* Output: Error messages to terminal */
1637 /* */
1638 /*********************************************************************/
1639
1640 void check_status ( cepi )
1641
1642 int cepi;
1643
1644 {
1645
1646 /*******************************************************************/
1647 /* Check for a good status. */
1648 /*******************************************************************/
1649
1650 if ( status == ZAPS_VAL_STATUS_OK )
1651 {
1652 return;
1653 }
1654
1655 /*******************************************************************/
1656 /* Get the error code and error subcode. */
1657 /*******************************************************************/
1658
1659 error = APS_STATUS_ ( cepi
1660 , /* event_code */
1661 , /* device_name */
1662 , (int *) &error_code
1663 , (int *) &error_subcode
1664 , /* service_id */
1665 , /* diagnostic_buffer */
1666 , (int *) &original_error_info );
1667
1668 check_error ();
1669
1670 /*******************************************************************/
1671 /* Display the status code. */
1672 /*******************************************************************/
1673
1674 printf ( "STATUS : %d ",status );