URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [uclinux/] [userland/] [route/] [lib/] [util.h] - Rev 1765
Compare with Previous | Blame | View Log
#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);