comparison lib/lib.h @ 35:f2c7f0799ebe

Add cat -v.
author Rob Landley <rob@landley.net>
date Sat, 25 Nov 2006 16:06:55 -0500
parents eb46bb5626cb
children bb4c38853a7d
comparison
equal deleted inserted replaced
34:c1f4f9101af7 35:f2c7f0799ebe
1 /* vi: set ts=4 :*/ 1 /* vi: set ts=4 :*/
2 /* lib.h - header file for lib directory 2 /* lib.h - header file for lib directory
3 * 3 *
4 * Copyright 2006 Rob Landley <rob@landley.net> 4 * Copyright 2006 Rob Landley <rob@landley.net>
5 */ 5 */
6
7 // libc generally has this, but the headers are screwed up
8 ssize_t getline(char **lineptr, size_t *n, FILE *stream);
6 9
7 // llist.c 10 // llist.c
8 void llist_free(void *list, void (*freeit)(void *data)); 11 void llist_free(void *list, void (*freeit)(void *data));
9 void *llist_pop(void *list); // actually void **list, but the compiler's dumb 12 void *llist_pop(void *list); // actually void **list, but the compiler's dumb
10 13