OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-16
Reading a File: C Programming Example
501 printf ( "FTM_U_ABORT_REQ_ FAILED\n" );
502 check_status ();
503 }
504
505 APS_DISCARD_ ( cepi );
506 exit (EXIT_SUCCESS);
507 }
508
509
510 file_selection_open_regime ();
511
512
513 /******************************************************************/
514 /* Terminate the FTAM regime. */
515 /******************************************************************/
516
517 status = FTM_TERMINATE_REQ_ ( cepi );
518 if ( status != ZAPS_VAL_STATUS_OK )
519 {
520 printf ( "FTM_TERMINATE_REQ_ FAILED\n" );
521 check_status ();
522 }
523
524 event = ZFTM_VAL_EVT_TERMINATE_CNF;
525 get_event ( &event );
526
527 /******************************************************************/
528 /* The charging parameter is used to convey information about */
529 /* costs attributed to the account. This parameter should be used */
530 /* only if the account parameter was used in the */
531 /* FTM_INITIALIZE_REQ_. The information returned in the charging */
532 /* parameter is not used in this example. */
533 /******************************************************************/
534
535 error = FTM_TERMINATE_CNF_ ( cepi
536 , (int *) &charging );
537 if ( error != ZAPS_ERR_OK )
538 {
539 printf ( "FTM_TERMINATE_CNF_ FAILED\n" );