dynlist.h revision c056561a
1/* dynlist.h: Dynamic lists and buffers in C
2 * created 1999-Jan-06 15:04 jmk
3 * autodate: 2000-Aug-28 01:29
4 *
5 * by Jim Knoble <jmknoble@jmknoble.cx>
6 * Copyright (C) 1999,2000 Jim Knoble
7 *
8 * Disclaimer:
9 *
10 * The software is provided "as is", without warranty of any kind,
11 * express or implied, including but not limited to the warranties of
12 * merchantability, fitness for a particular purpose and
13 * noninfringement. In no event shall the author(s) be liable for any
14 * claim, damages or other liability, whether in an action of
15 * contract, tort or otherwise, arising from, out of or in connection
16 * with the software or the use or other dealings in the software.
17 *
18 * Permission to use, copy, modify, distribute, and sell this software
19 * and its documentation for any purpose is hereby granted without
20 * fee, provided that the above copyright notice appear in all copies
21 * and that both that copyright notice and this permission notice
22 * appear in supporting documentation.
23 */
24
25#ifndef H_DYNLIST
26#define H_DYNLIST 1
27
28#define APPEND_SUCCESS	1
29#define APPEND_FAILURE	0
30
31int append_to_list(char ***list_ptr, int *list_len, int *i, char *item);
32int append_to_buf(char **buf, int *buflen, int *i, int c);
33
34#endif /* H_DYNLIST */
35