X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/d24901e6cc51d80d30e074eba9fdb3b64d938dc2..53b39ad0d16a7375bc8356da990b2a30b82c9763:/include/minilib.h?ds=inline diff --git a/include/minilib.h b/include/minilib.h index 0f5edff..d743d5b 100644 --- a/include/minilib.h +++ b/include/minilib.h @@ -3,18 +3,23 @@ #include -extern void memcpy(void *dest, void *src, int bytes); +extern void memcpy(void *dest, const void *src, int bytes); +extern void memset(void *dest, int data, int bytes); extern void memmove(void *dest, void *src, int bytes); extern int memcmp(const char *a2, const char *a1, int bytes); extern int strcmp(const char *a2, const char *a1); -extern int strlen(char *c); +extern int strncmp(const char *a2, const char *a1, int n); +extern int strlen(const char *c); +extern void strcat(char *dest, char *src); extern void strcpy(char *a2, const char *a1); -extern void puts(char *c); +extern void puts(const char *c); extern void tohex(char *s, unsigned long l); extern void puthex(unsigned long l); extern int vsprintf(char *s, const char *fmt, va_list args); extern int vsnprintf(char *s, int size, const char *fmt, va_list args); extern int sprintf(char *s, const char *fmt, ...); extern int snprintf(char *s, int size, const char *fmt, ...); +extern unsigned short htons(unsigned short in); +extern unsigned int htonl(unsigned int in); #endif