*
* $Id$
*
* $Log$
* Revision 1.1  1996/02/15 17:50:33  mclareni
* Initial revision
*
*
#include "kerngen/pilot.h"
#if defined(CERNLIB_QMMPW)
#include "mpwgs/xinb.F"
#elif defined(CERNLIB_QMVAX)
#include "vaxgs/xinb.F"
#elif defined(CERNLIB_QMIRT)
#include "irtngs/xinb.F"
#elif defined(CERNLIB_QMIRTD)
#include "irtdgs/xinb.F"
#else
      SUBROUTINE XINB  (LUN,XBV,NXB)
C
C CERN PROGLIB# Z203    XINB            .VERSION KERNFOR  4.31  911111
C ORIG. 15/07/78 JZ
C
      COMMON /SLATE/ NXR, DUMMY(39)
      DIMENSION    XBV(*)
C
      READ (LUN,IOSTAT=JSTAT) NR,(XBV(J),J=1,MIN(NR,NXB))
      IF    (JSTAT)          61, 24, 64
   24 NXR = NR
      NR  = MIN(NR,NXB)
      NXB = MAX(1,NR)
      RETURN
C
   61 NXB = 0
      RETURN
C
   64 NXB = -JSTAT
      RETURN
      END
#endif
