home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
archives
/
msvp98b1.lzh
/
MSNLIB.H
< prev
next >
Wrap
Text File
|
1993-05-14
|
2KB
|
81 lines
/* File MSNLIB.H
* Kermit include file for TCP C modules
*
* Copyright (C) 1985, 1992, Trustees of Columbia University in the
* City of New York. Permission is granted to any individual or institution
* to use this software as long as it is not sold for profit. This copyright
* notice must be retained. This software may not be included in commercial
* products without written permission of Columbia University.
*
* The C code is designed for the small memory model of Microsoft C versions
* 5.1 and 6.00A, with structures packed on one byte boundaries. No other
* options are expected.
*
* Last edit:
* 6 Sept 1991
*/
#ifndef NULL
#define NULL 0
#endif
/* Function prototypes */
#ifndef byte
typedef unsigned char byte;
#endif /* byte */
#ifndef word
typedef unsigned int word;
#endif /* word */
#ifndef longword
typedef unsigned long longword;
#endif /* longword */
void outch( byte ); /* print character to stdio */
void outs( byte * ); /* print an ASCIIZ string to stdio */
void outsn( byte *, int ); /* print a string with len max n */
void outhex( byte );
void outhexes( void *, int );
void ntoa(byte *, unsigned long);
unsigned long realclock( void );
unsigned long set_timeout( unsigned int );
unsigned long set_ttimeout( unsigned int );
int chk_timeout( unsigned long );
unsigned long intel( unsigned long );
unsigned intel16( unsigned );
unsigned int checksum( void *ptr, int len ); /* IP checksum */
int ourmod(int, int);
int ourdiv(int, int);
long ourlmod(long, int);
long ourldiv(long, int);
/* Library function replacements */
int atoi(byte *);
byte * ltoa(long, byte *, int);
byte * itoa(int, byte *, int);
int isdigit(const byte);
byte * strchr(byte *, const byte);
byte * strcat(byte *, byte *);
byte * strncat(byte *, byte *, int);
byte * strcpy(byte *, byte *);
byte * strncpy(byte *, byte *, int);
int strlen(byte *);
int strcmp(byte *, byte *);
int stricmp(byte *, byte *);
int strncmp(byte *, byte *, int);
void * bcopy(void *, void *, int);
void * memset(void *, byte, int);
void * pkt_received(void);
int pkt_eth_init(void);
int pkt_init(void);
int pkt_send(byte *, int);
int pkt_release(void);
void pkt_buf_release(byte *);
void pkt_buf_wipe(void);
void enable(void);
void disable (void);