home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_02 / 2n02047a < prev    next >
Text File  |  1990-12-30  |  615b  |  18 lines

  1.  
  2. #include        <string.h>
  3. #include        "netbios.h"
  4.  
  5. /*************************************************************
  6. *  init_ncb - clear and initialize net control block
  7. *  Parameters: ncb (in/out) - net control block to be cleared
  8. *  Notes: code sets the network adapter number to 0 (primary)
  9. *  History: Original code by William H. Roetzheim, 1990
  10. ***************************************************************/
  11.  
  12. void    init_ncb(struct net_control_block *ncb)
  13. {
  14.         memset(ncb, 0, sizeof(struct net_control_block));
  15.         ncb->rto = RECEIVE_TIMEOUT;
  16.         ncb->sto = SEND_TIMEOUT;
  17. }
  18.