diff lib/lib.h @ 115:19b5567f0a1b

Add readlink, xreadlink(), and change xrealloc() to not fight the stupid compiler so much.
author Rob Landley <rob@landley.net>
date Sun, 29 Apr 2007 19:55:21 -0400
parents aa4fa2543a65
children ef2bc92d5fb0
line wrap: on
line diff
--- a/lib/lib.h	Mon Apr 23 15:45:55 2007 -0400
+++ b/lib/lib.h	Sun Apr 29 19:55:21 2007 -0400
@@ -40,7 +40,7 @@
 void strlcpy(char *dest, char *src, size_t size);
 void *xmalloc(size_t size);
 void *xzalloc(size_t size);
-void xrealloc(void **ptr, size_t size);
+void *xrealloc(void *ptr, size_t size);
 void *xstrndup(char *s, size_t n);
 void *xstrdup(char *s);
 char *xmsprintf(char *format, ...);
@@ -67,6 +67,7 @@
 char *itoa(int n);
 long atolx(char *c);
 off_t fdlength(int fd);
+char *xreadlink(char *name);
 struct dirtree *read_dirtree_node(char *path);
 struct dirtree *read_dirtree(char *path, struct dirtree *parent);