OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-55
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1676
1677 /******************************************************************/
1678 /* Display the invalid state-result error message. You might also */
1679 /* want to print out the diagnostic field to obtain more */
1680 /* information about the error condition. */
1681 /******************************************************************/
1682
1683 printf ("BAD STATE # %d Association aborted\n", state_result);
1684
1685 /*******************************************************************/
1686 /* Discard the API context information for the association */
1687 /* and abend the program. */
1688 /*******************************************************************/
1689
1690 APS_DISCARD_ ( cepi );
1691 exit (EXIT_FAILURE);
1692
1693 } /* bad_state */
1694
1695
1696
1697