NAME
          irNumChans - get the number of channels on the system

     SYNOPSIS
          #include <irapi.h>

          int irNumChans (int type);

     DESCRIPTION
          The irNumChans function returns the number of channels of
          the given type on the system.  Type may be either IRD_REAL,
          IRD_VIRTUAL, or the bitwise OR of the two values (IRD_REAL |
          IRD_VIRTUAL) [See IrDEFINES(4IRAPI)].

     EVENT
          No event results from the call to irNumChans.

     RETURN VALUE
          The number of channels, system wide, of the indicated
          type(s) is returned.

          IRR_FAIL is returned if an error occurs.

     ERROR
          irError is set to IRER_INVALID if type is invalid (not
          IRD_REAL, IRD_VIRTUAL or IRD_REAL | IRD_VIRTUAL).

     VERSION
          This is version 8/31/00 of this man page.