OSI/FTAM Programming Guide

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide528612-001
5-40
Reading a File: C Programming Example
1437 printf ( "ERROR SUBCODE : %d\n", error_subcode );
1438
1439 /******************************************************************/
1440 /* Display the original error code and error subcode. */
1441 /******************************************************************/
1442
1443 printf ("ORIGINAL ERROR INFO -\n");
1444 printf (" SERVICE ID : %d\n", original_error_info.zerror.zservice_id );
1445 printf (" ERROR CODE : %d\n", original_error_info.zerror.zerror_code );
1446 printf (" ERROR SUBCODE : %d\n",
1447 original_error_info.zerror.zerror_subcode );
1448
1449 APS_DISCARD_ ( cepi );
1450 printf ( "Association discarded\n" );
1451 exit(EXIT_SUCCESS);
1452
1453 } /* check_status */
1454
1455
1456 #pragma PAGE "CHECK_ERROR"
1457 /*********************************************************************/
1458 /* */
1459 /* Name: check_error */
1460 /* */
1461 /* Description: The check_error procedure reports error codes */
1462 /* returned by FTAM procedure calls. This */
1463 /* procedure displays a message, then discards the */
1464 /* association with the remote system, and exits */
1465 /* the program. */
1466 /* */
1467 /********************************************************************/
1468
1469 void check_error ()
1470
1471 {
1472
1473 /******************************************************************/
1474 /* Display the error code. */
1475 /******************************************************************/