diff options
author | 2007-08-25 02:30:55 +0000 | |
---|---|---|
committer | 2007-08-25 02:30:55 +0000 | |
commit | 0c10ade21f390fc83d51306bf0394b0bcfa80434 (patch) | |
tree | 8539e30136f39c8bd469ecc849708491ca544248 /xfuncs.h | |
parent | split xfuncs off into a sep file for all utils to use, cleanup misc things, a... (diff) | |
download | pax-utils-0c10ade21f390fc83d51306bf0394b0bcfa80434.tar.gz pax-utils-0c10ade21f390fc83d51306bf0394b0bcfa80434.tar.bz2 pax-utils-0c10ade21f390fc83d51306bf0394b0bcfa80434.zip |
add missing split xfuncs filesv0.1.16
Diffstat (limited to 'xfuncs.h')
-rw-r--r-- | xfuncs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/xfuncs.h b/xfuncs.h new file mode 100644 index 0000000..97b5d11 --- /dev/null +++ b/xfuncs.h @@ -0,0 +1,20 @@ +/* + * Copyright 2003-2007 Gentoo Foundation + * Distributed under the terms of the GNU General Public License v2 + * $Header: /var/cvsroot/gentoo-projects/pax-utils/xfuncs.h,v 1.1 2007/08/25 02:30:55 vapier Exp $ + * + * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> + * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> + */ + +#ifndef __XFUNCS_H__ +#define __XFUNCS_H__ + +char *xstrdup(const char *s); +void *xmalloc(size_t size); +void *xrealloc(void *ptr, size_t size); +void xstrncat(char **dst, const char *src, size_t *curr_len, size_t n); +#define xstrcat(dst,src,curr_len) xstrncat(dst,src,curr_len,0) +void xchrcat(char **dst, const char append, size_t *curr_len); + +#endif |