comparison lib/lib.h @ 128:0a90a5fbc1bf

Add xputs() to detect EOF on writes.
author Rob Landley <rob@landley.net>
date Mon, 18 Jun 2007 00:14:03 -0400
parents ef2bc92d5fb0
children 0901b3b2bbe9
comparison
equal deleted inserted replaced
127:343117774a9f 128:0a90a5fbc1bf
46 void *xrealloc(void *ptr, size_t size); 46 void *xrealloc(void *ptr, size_t size);
47 void *xstrndup(char *s, size_t n); 47 void *xstrndup(char *s, size_t n);
48 void *xstrdup(char *s); 48 void *xstrdup(char *s);
49 char *xmsprintf(char *format, ...); 49 char *xmsprintf(char *format, ...);
50 void xprintf(char *format, ...); 50 void xprintf(char *format, ...);
51 void xputs(char *s);
51 void xputc(char c); 52 void xputc(char c);
52 void xflush(void); 53 void xflush(void);
53 void xexec(char **argv); 54 void xexec(char **argv);
54 void xaccess(char *path, int flags); 55 void xaccess(char *path, int flags);
55 int xcreate(char *path, int flags, int mode); 56 int xcreate(char *path, int flags, int mode);