home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / mskermit / msnlib.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  3KB  |  96 lines

  1. /* File MSNLIB.H
  2.  * Kermit include file for TCP C modules
  3.  *
  4.  *    Copyright (C) 1982, 1997, Trustees of Columbia University in the 
  5.  *    City of New York.  The MS-DOS Kermit software may not be, in whole 
  6.  *    or in part, licensed or sold for profit as a software product itself,
  7.  *    nor may it be included in or distributed with commercial products
  8.  *    or otherwise distributed by commercial concerns to their clients 
  9.  *    or customers without written permission of the Office of Kermit 
  10.  *    Development and Distribution, Columbia University.  This copyright 
  11.  *    notice must not be removed, altered, or obscured.
  12.  *
  13.  * The C code is designed for the small memory model of Microsoft C versions
  14.  * 5.1 and later, with structures packed on one byte boundaries. No other
  15.  * options are expected.
  16.  *
  17.  * Last edit:
  18.  * 12 Jan 1995 version 3.14
  19.  */
  20.  
  21. #ifndef NULL
  22. #define NULL 0
  23. #endif
  24.  
  25. /* Function prototypes */
  26.  
  27. #ifndef byte
  28. typedef unsigned char byte;
  29. #endif  /* byte */
  30. #ifndef word
  31. typedef unsigned int word;
  32. #endif  /* word */
  33. #ifndef longword
  34. typedef unsigned long longword;
  35. #endif /* longword */
  36.  
  37. void outch( byte );        /* print character to stdio */
  38. void outs( byte * );        /* print an ASCIIZ string to stdio */
  39. void outsn( byte *, int );    /* print a string with len max n */
  40. void outhex( byte );
  41. void outhexes( void *, int );
  42. void outdec(int);
  43. void ntoa(byte *, unsigned long);
  44.  
  45. unsigned long set_timeout( unsigned int );
  46. unsigned long set_ttimeout( unsigned int );
  47. int chk_timeout( unsigned long );
  48.  
  49. unsigned long intel( unsigned long );
  50. unsigned intel16( unsigned );
  51. unsigned int checksum( void FAR *ptr, int len ); /* IP checksum */
  52.  
  53. int  ourmod(int, int);
  54. int  ourdiv(int, int);
  55. long ourlmod(long, int);
  56. long ourldiv(long, int);
  57.  
  58. /* Library function replacements */
  59.  
  60. int    atoi(byte *);
  61. byte * ltoa(long, byte *, int);
  62. byte * itoa(int, byte *, int);
  63. int    isdigit(const byte);
  64. byte * strchr(void *, const byte);
  65. byte FAR * strchrf(byte FAR *, const byte);
  66. byte * strcat(void *, void *);
  67. byte * strncat(void *, void *, int);
  68. byte * strcpy(void *, void *);
  69. byte * strncpy(void *, void *, int);
  70. int    strlen(void *);
  71. int    strcmp(void *, void *);
  72. int    stricmp(void *, void *);
  73. int    strncmp(byte *, void *, int);
  74. void * bcopy(void *, void *, int);
  75. void * bcopyff(void FAR *, void FAR *, int);
  76. void * memset(void *, byte, int);
  77. void * pkt_received(void);
  78. int    pkt_eth_init(void);
  79. int    pkt_init(void);
  80. int    pkt_send(byte *, int);
  81. int    pkt_release(void);
  82. void   pkt_buf_release(byte *);
  83. void   pkt_buf_wipe(void);
  84. void   enable(void);
  85. void   disable (void);
  86.  
  87. /* supporting assembly language routines in file msnut1.asm */
  88. longword intel(longword x);
  89. word    intel16(word x);
  90. void FAR * malloc(word x);
  91. void    free(void FAR *);
  92. int    fstchr(const char FAR *, word, byte);
  93. int    destuff(const char FAR *, int, const char FAR *, int, void *, void *);
  94. longword aton(byte *);
  95. int    chkcon(void);
  96.