OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-157
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1987 {
1988 printf (" Diagnostic Type: %ld\n", diag.zdiagelems[i].zdiagtype );
1989 printf (" Error ID: %ld\n", diag.zdiagelems[i].zerrorid );
1990 if (diag.zdiagelems[i].zfurtherdetailsispresent == ZAPS_VAL_PRESENT)
1991 printf (" Details: %s\n",
1992 diag.zdiagelems[i].zfurtherdetails.u_zc.zb );
1993 }
1994
1995 /****************************************************************/
1996 /* Abort both associations and exit the program. */
1997 /****************************************************************/
1998
1999 abort_discard ();
2000 printf ( "Association discarded\n" );
2001 exit (EXIT_SUCCESS);
2002
2003 }
2004
2005 } /*** check_action_diag ***/
2006
2007
2008 #pragma PAGE "ABORT_DISCARD"
2009 /*********************************************************************/
2010 /* */
2011 /* Name: abort_discard */
2012 /* */
2013 /* Description: The abort_discard procedure aborts and discards */
2014 /* valid associations and CEPIs. */
2015 /* */
2016 /* Input: None */
2017 /* */
2018 /* Output: None */
2019 /* */
2020 /*********************************************************************/
2021
2022 void abort_discard ()
2023
2024 {
2025