OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-54
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1637 diag.zdiagelems[i].zfurtherdetails.u_zc.zb );
1638 }
1639
1640 /******************************************************************/
1641 /* Discard the API context information for the association and */
1642 /* exit the program. */
1643 /******************************************************************/
1644
1645 APS_DISCARD_ ( cepi );
1646 printf ( "Association discarded\n" );
1647 exit (EXIT_SUCCESS);
1648
1649 }
1650
1651 } /* check_action_diag */
1652
1653
1654 #pragma PAGE "BAD_STATE"
1655 /*********************************************************************/
1656 /* */
1657 /* Name: bad_state */
1658 /* */
1659 /* Description: The following procedure is called when an FTM */
1660 /* confirm procedure returns a bad state result. */
1661 /* The procedure displays an error message, discards */
1662 /* the association, and abends the program. Additional */
1663 /* application-specific error handling or recovery */
1664 /* could be implemented, depending on application */
1665 /* requirements. */
1666 /* */
1667 /* Input: None */
1668 /* */
1669 /* Output: Error message to terminal */
1670 /* */
1671 /*********************************************************************/
1672
1673 void bad_state ()
1674
1675 {