OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [userland/] [route/] [lib/] [util.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
#include <stddef.h>
2
 
3
void *xmalloc(size_t sz);
4
void *xrealloc(void *p, size_t sz);
5
 
6
#define new(p) ((p) = xmalloc(sizeof(*(p))))
7
 
8
 
9
int kernel_version(void);
10
#define KRELEASE(maj,min,patch) ((maj) * 10000 + (min)*1000 + (patch))
11
 
12
 
13
int nstrcmp(const char *, const char *);
14
 
15
char *safe_strncpy(char *dst, const char *src, size_t size);
16
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.