t_qbst (ul_tecar)


   Synopsis:

      This function is called to tell the TECAR server to do a
      QBS (Quench Bypass Switch) test.


   Declarations (FORTRAN):

       CHARACTER TECAR_SERVER*8 /'tecar-a2'/
       LOGICAL*1 INPUT(2), OUTPUT(2)
       INTEGER*2 ISTAT, T_QBST


   Declarations (ANSI C):

       unsigned char TECAR_server[]="tecar-a2";
       unsigned char input[2], output[2];
       short         istat;
       short t_qbst ( unsigned char *const TECAR_server,
                      unsigned char *const input,
                      unsigned char *const output );


   Usage (FORTRAN):

       ISTAT = T_QBST ( TECAR_SERVER, INPUT, OUTPUT )


   Usage (C):

      istat = t_qbst ( TECAR_server, input, output );


   Usage (VAX generic format):

      istat.w.w = t_qbst ( TECAR_server.ar.b, input.ar.w, output.aw.w )


   Arguments:

      Input - readonly:

         TECAR_server	a character string which contains the Internet
                        name of the TECAR server. This name must be
                        resolvable via the Domain Name Service.
			This may be passed either as a pointer to a
		        null-terminated string, or by descriptor
			(under VMS only).

         input		the location of the switch, where the first
	                character is the accelerator sector ( 'A', 'B',
			'C', 'D', 'E', or 'F' -  [A-F] as a regular
			expression), and the second character is the
			controller for switches in that sector (either
			'A' or 'B' - [AB] as a regular expression)

      Output:

         output         the sector and controller most-recently tested -
	                in the same format as the input argument


      Returns:

         istat          the status return in ACNET format