add contrib directory & contents

This commit is contained in:
marschap committed 2006-02-25 18:23:24 +00:00
1 parent d0d8b1d9f1
commit 26904e9637
38 files changed
+6449

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#include <stddef.h>
void *xmalloc(size_t sz);
void *xrealloc(void *p, size_t sz);
#define new(p) ((p) = xmalloc(sizeof(*(p))))
int kernel_version(void);
#define KRELEASE(maj,min,patch) ((maj) * 10000 + (min)*1000 + (patch))
int nstrcmp(const char *, const char *);
char *safe_strncpy(char *dst, const char *src, size_t size);
#define netmin(a,b) ((a)<(b) ? (a) : (b))
#define netmax(a,b) ((a)>(b) ? (a) : (b))