home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-1.ZIP / GCOMM / ASIXOFF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-14  |  831 b   |  42 lines

  1. /* asixoff.c
  2. *
  3. * The Greenleaf Comm Library
  4. *
  5. * Copyright (C) 1985-1990 Greenleaf Software Inc.  All Rights Reserved.
  6. *
  7. *  int asixoff(port)
  8. *  int port;            - Port 0..MAX_PORT-1
  9. *
  10. * DESCRIPTION
  11. *
  12. *  Disables XON/XOFF type flow control
  13. *
  14. * SIDE EFFECTS
  15. *  none
  16. *
  17. * RETURNS
  18. *
  19. *       Value           Meaning
  20. *     -------          --------
  21. *       ASSUCCESS       Successful
  22. *       ASINVPORT       Requested port is out of range
  23. *       ASNOTSETUP      Requested port not setup with asifirst()
  24. *
  25. * MODIFICATIONS
  26. *
  27. */
  28. #include <stdio.h>
  29. #include "gf.h"
  30. #include "asiports.h"
  31.  
  32. int GF_CONV asixoff(port)
  33. int port;
  34. {
  35.         struct PORT_TABLE *p;
  36.  
  37.         if((p=_aschkcnl(port))==NULL)
  38.                 return(_aserror);
  39.         p->chmode_bits.is_xoffmode=0;
  40.         return(ASSUCCESS);
  41. }
  42.