~ubuntu-branches/ubuntu/feisty/net-tools/feisty

« back to all changes in this revision

Viewing changes to lib/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Eckenfels
  • Date: 2001-11-24 06:26:37 UTC
  • Revision ID: james.westby@ubuntu.com-20011124062637-1y96kzx03e8dbi55
Tags: upstream-1.60
ImportĀ upstreamĀ versionĀ 1.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#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