OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-36
Reading a File: C Programming Example
1281 /******************************************************************/
1282
1283 printf ( "BAD ACTION # %d\n", action_result );
1284 check_diag ();
1285
1286 } /* check_action */
1287
1288
1289 #pragma PAGE "CHECK_STATE"
1290 /*********************************************************************/
1291 /* */
1292 /* Name: check_state */
1293 /* */
1294 /* Description: The following procedure is called when an FTM */
1295 /* confirm procedure returns a bad state_result. The */
1296 /* procedure displays an error message and calls */
1297 /* check_diag for diagnostic messages. */
1298 /* */
1299 /********************************************************************/
1300
1301 void check_state ()
1302
1303 {
1304
1305 /******************************************************************/
1306 /* Display the invalid state-result error message. You */
1307 /* might alsowant to print out the diagnostic field to obtain */
1308 /* more information about the error condition. */
1309 /******************************************************************/
1310
1311 printf ( "BAD STATE # %d\n", state_result );
1312 check_diag ();
1313
1314 } /* check_state */
1315
1316
1317 #pragma PAGE "CHECK_DIAG"
1318 /********************************************************************/
1319 /* */










