home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / msvp98b1.lzh / MSNLIB.H < prev    next >
Text File  |  1993-05-14  |  2KB  |  81 lines

  1. /* File MSNLIB.H
  2.  * Kermit include file for TCP C modules
  3.  *
  4.  * Copyright (C) 1985, 1992, Trustees of Columbia University in the 
  5.  * City of New York.  Permission is granted to any individual or institution
  6.  * to use this software as long as it is not sold for profit.  This copyright
  7.  * notice must be retained.  This software may not be included in commercial
  8.  * products without written permission of Columbia University.
  9.  *
  10.  * The C code is designed for the small memory model of Microsoft C versions
  11.  * 5.1 and 6.00A, with structures packed on one byte boundaries. No other
  12.  * options are expected.
  13.  *
  14.  * Last edit:
  15.  * 6 Sept 1991
  16.  */
  17.  
  18. #ifndef NULL
  19. #define NULL 0
  20. #endif
  21.  
  22. /* Function prototypes */
  23.  
  24. #ifndef byte
  25. typedef unsigned char byte;
  26. #endif  /* byte */
  27. #ifndef word
  28. typedef unsigned int word;
  29. #endif  /* word */
  30. #ifndef longword
  31. typedef unsigned long longword;
  32. #endif /* longword */
  33.  
  34. void outch( byte );        /* print character to stdio */
  35. void outs( byte * );        /* print an ASCIIZ string to stdio */
  36. void outsn( byte *, int );    /* print a string with len max n */
  37. void outhex( byte );
  38. void outhexes( void *, int );
  39. void ntoa(byte *, unsigned long);
  40.  
  41. unsigned long realclock( void );
  42. unsigned long set_timeout( unsigned int );
  43. unsigned long set_ttimeout( unsigned int );
  44. int chk_timeout( unsigned long );
  45.  
  46. unsigned long intel( unsigned long );
  47. unsigned intel16( unsigned );
  48. unsigned int checksum( void *ptr, int len ); /* IP checksum */
  49.  
  50. int  ourmod(int, int);
  51. int  ourdiv(int, int);
  52. long ourlmod(long, int);
  53. long ourldiv(long, int);
  54.  
  55. /* Library function replacements */
  56.  
  57. int    atoi(byte *);
  58. byte * ltoa(long, byte *, int);
  59. byte * itoa(int, byte *, int);
  60. int    isdigit(const byte);
  61. byte * strchr(byte *, const byte);
  62. byte * strcat(byte *, byte *);
  63. byte * strncat(byte *, byte *, int);
  64. byte * strcpy(byte *, byte *);
  65. byte * strncpy(byte *, byte *, int);
  66. int    strlen(byte *);
  67. int    strcmp(byte *, byte *);
  68. int    stricmp(byte *, byte *);
  69. int    strncmp(byte *, byte *, int);
  70. void * bcopy(void *, void *, int);
  71. void * memset(void *, byte, int);
  72. void * pkt_received(void);
  73. int    pkt_eth_init(void);
  74. int    pkt_init(void);
  75. int    pkt_send(byte *, int);
  76. int    pkt_release(void);
  77. void   pkt_buf_release(byte *);
  78. void   pkt_buf_wipe(void);
  79. void   enable(void);
  80. void   disable (void);
  81.