From: Joshua Wise Date: Fri, 19 Sep 2008 20:56:30 +0000 (-0400) Subject: merge X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/a9d1719cd11f54eaa60e5206f220212b771caf7c?hp=--cc merge --- a9d1719cd11f54eaa60e5206f220212b771caf7c diff --cc include/minilib.h index 0f5edff,b583046..aa8bf73 --- a/include/minilib.h +++ b/include/minilib.h @@@ -1,20 -1,13 +1,20 @@@ #ifndef MINILIB_H #define MINILIB_H -void memcpy(void *dest, void *src, int bytes); -void memmove(void *dest, void *src, int bytes); -int strcmp(const char *a2, const char *a1); -void strcpy(char *a2, const char *a1); -void tohex(char *s, unsigned long l); +#include -void puts(const char *c); -void puthex(unsigned long l); +extern void memcpy(void *dest, void *src, 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 strlen(const char *c); +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, ...); #endif