cont gv_errend.3

Go back to listing by section, keyword search or top of cont man page tree.




gverr(3)                                                             gverr(3)




Name
   gv errmsg, gv errend - prepare error message for gv function


Syntax
   #include "gv.h"

   gv errmsg(msg)
   char *msg;

   gv errend()


Description

  gv errmsg and gv errend functions have been developed and be available at
  the KEK-Linac. These functions are prepared in order to get an error mes-
  sage for the gv (gate-valve) monitor function (gv). Actually gv function
  keeps an error code generated when it failed, and the gv errmsg function
  searches for an appropriate message according to the error code.

  The gv errmsg function returns an error message. The arguments msg point to
  a user-buffer for string to be copyed. It is better to prepare more than
  132 (possibly 256) bytes for the buffer.

  The gv errend function shows an error message to stderr, and terminates the
  program.


  Additional Notes

  1)   The gv errmsg and gv errend functions should be called immediately
       after the gv functions.


Diagnostics
  The functions always return zero.


See also
  gv(3), gv(1)