]>
Commit | Line | Data |
---|---|---|
36ce375d JP |
1 | #ifndef MINILIB_H |
2 | #define MINILIB_H | |
d56898ee | 3 | |
d24901e6 JW |
4 | #include <stdarg.h> |
5 | ||
42e26afa | 6 | extern void memcpy(void *dest, const void *src, int bytes); |
6e6d4a8b | 7 | extern void memset(void *dest, int data, int bytes); |
d24901e6 JW |
8 | extern void memmove(void *dest, void *src, int bytes); |
9 | extern int memcmp(const char *a2, const char *a1, int bytes); | |
10 | extern int strcmp(const char *a2, const char *a1); | |
6f9272bd | 11 | extern int strncmp(const char *a2, const char *a1, int n); |
a9d1719c | 12 | extern int strlen(const char *c); |
9343e933 | 13 | extern void strcat(char *dest, char *src); |
d24901e6 | 14 | extern void strcpy(char *a2, const char *a1); |
a9d1719c | 15 | extern void puts(const char *c); |
d24901e6 JW |
16 | extern void tohex(char *s, unsigned long l); |
17 | extern void puthex(unsigned long l); | |
18 | extern int vsprintf(char *s, const char *fmt, va_list args); | |
19 | extern int vsnprintf(char *s, int size, const char *fmt, va_list args); | |
20 | extern int sprintf(char *s, const char *fmt, ...); | |
21 | extern int snprintf(char *s, int size, const char *fmt, ...); | |
644af6b4 | 22 | extern unsigned short htons(unsigned short in); |
6e6d4a8b | 23 | extern unsigned int htonl(unsigned int in); |
d56898ee | 24 | |
25 | #endif |