OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-29
Reading a File: C Programming Example
1008 if ( error != ZAPS_ERR_OK )
1009 {
1010 printf ( "FTM_TRANSFER_END_CNF_ FAILED\n" );
1011 check_error ();
1012 }
1013 if ( action_result == ZFTM_VAL_ACTION_FAILURE )
1014 {
1015 printf ( "FTM_TRANSFER_END_CNF_ FAILED\n" );
1016 check_action ();
1017 }
1018 }
1019
1020 } /* data_transfer_regime */
1021
1022
1023 #pragma PAGE "CREATE_OPEN_LOCAL_FILE"
1024/**********************************************************************/
1025 /* */
1026 /* Name: create_open_local_file */
1027 /* */
1028 /* Description: This procedure creates the local file using the */
1029 /* contents_type value of the remote file and opens the */
1030 /* local file. */
1031 /* */
1032 /*********************************************************************/
1033
1034 void create_open_local_file ()
1035
1036 {
1037
1038 if ( ( extfname_to_intfname ( LOCAL_FILE_NAME, local_file ) ) != 0 )
1039 {
1040 printf ( "Conversion to internal format for local file failed\n" );
1041 exit (EXIT_SUCCESS);
1042 }
1043
1044 /******************************************************************/
1045 /* Set the Tandem file code and file type to create the local */
1046 /* file according to the string-significance associated with */