X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/f2da2cd360ec68bd03100e10d5b24daefc97c1ab..98e930a2a059808ccede1f1298677aa59e4b7391:/include/minilib.h?ds=sidebyside diff --git a/include/minilib.h b/include/minilib.h index b583046..2e7eca6 100644 --- a/include/minilib.h +++ b/include/minilib.h @@ -1,13 +1,35 @@ +/* minilib.h + * Definitions for a very small libc + * NetWatch system management mode administration console + * + * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved. + * This program is free software; you can redistribute and/or modify it under + * the terms found in the file LICENSE in the root of this source tree. + * + */ + #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, 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 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(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