procps/proc/alloc.h

18 lines
358 B
C
Raw Normal View History

2002-12-09 12:30:07 +05:30
#ifndef PROCPS_PROC_ALLOC_H
#define PROCPS_PROC_ALLOC_H
#include <features.h>
2002-12-09 12:30:07 +05:30
__BEGIN_DECLS
2002-12-09 12:30:07 +05:30
#define MALLOC __attribute__ ((__malloc__))
extern void *xcalloc(unsigned int size) MALLOC;
extern void *xmalloc(size_t size) MALLOC;
extern void *xrealloc(void *oldp, unsigned int size) MALLOC;
extern char *xstrdup(const char *str) MALLOC;
2002-12-09 12:30:07 +05:30
__END_DECLS
2002-12-09 12:30:07 +05:30
#endif