comparison lib/lib.h @ 4:732b055e17f7

Add xmsprintf(), xgetcwd(), xgetcwd(), find_in_path().
author landley@driftwood
date Wed, 25 Oct 2006 18:38:37 -0400
parents 266a462ed18c
children fc9c0503d5e2
comparison
equal deleted inserted replaced
3:266a462ed18c 4:732b055e17f7
5 void strlcpy(char *dest, char *src, size_t size); 5 void strlcpy(char *dest, char *src, size_t size);
6 void *xmalloc(size_t size); 6 void *xmalloc(size_t size);
7 void *xzalloc(size_t size); 7 void *xzalloc(size_t size);
8 void xrealloc(void **ptr, size_t size); 8 void xrealloc(void **ptr, size_t size);
9 void *xstrndup(char *s, size_t n); 9 void *xstrndup(char *s, size_t n);
10 char *xmsprintf(char *format, ...);
10 void *xexec(char **argv); 11 void *xexec(char **argv);
11 int xopen(char *path, int flags, int mode); 12 int xopen(char *path, int flags, int mode);
12 FILE *xfopen(char *path, char *mode); 13 FILE *xfopen(char *path, char *mode);
14 char *xgetcwd(void);
15 char *find_in_path(char *path, char *filename);
13 16
14 // llist.c 17 // llist.c
15 void llist_free(void *list, void (*freeit)(void *data)); 18 void llist_free(void *list, void (*freeit)(void *data));
16 19
17 // getmountlist.c 20 // getmountlist.c