]> Joshua Wise's Git repositories - netwatch.git/blame_incremental - include/minilib.h
First pass of 410watch UI code.
[netwatch.git] / include / minilib.h
... / ...
CommitLineData
1/* minilib.h
2 * Definitions for a very small libc
3 * NetWatch system management mode administration console
4 *
5 * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved.
6 * This program is free software; you can redistribute and/or modify it under
7 * the terms found in the file LICENSE in the root of this source tree.
8 *
9 */
10
11#ifndef MINILIB_H
12#define MINILIB_H
13
14#include <stdarg.h>
15
16extern void memcpy(void *dest, const void *src, int bytes);
17extern void memset(void *dest, int data, int bytes);
18extern void *memchr(const void *buf, char c, int maxlen);
19extern void memmove(void *dest, void *src, int bytes);
20extern int memcmp(const char *a2, const char *a1, int bytes);
21extern int strcmp(const char *a2, const char *a1);
22extern int strncmp(const char *a2, const char *a1, int n);
23extern int strlen(const char *c);
24extern void strcat(char *dest, char *src);
25extern void strcpy(char *a2, const char *a1);
26extern void puts(const char *c);
27extern void tohex(char *s, unsigned long l);
28extern void btohex(char *s, unsigned char c);
29extern void puthex(unsigned long l);
30extern int vsprintf(char *s, const char *fmt, va_list args);
31extern int vsnprintf(char *s, int size, const char *fmt, va_list args);
32extern int sprintf(char *s, const char *fmt, ...);
33extern int snprintf(char *s, int size, const char *fmt, ...);
34extern unsigned short htons(unsigned short in);
35extern unsigned int htonl(unsigned int in);
36
37#endif
This page took 0.024134 seconds and 4 git commands to generate.