18db30ca8Sthorpej/* dynlist.h: Dynamic lists and buffers in C
28db30ca8Sthorpej * created 1999-Jan-06 15:04 jmk
3c056561aSmbalmer * autodate: 2000-Aug-28 01:29
48db30ca8Sthorpej *
5c056561aSmbalmer * by Jim Knoble <jmknoble@jmknoble.cx>
6c056561aSmbalmer * Copyright (C) 1999,2000 Jim Knoble
78db30ca8Sthorpej *
88db30ca8Sthorpej * Disclaimer:
98db30ca8Sthorpej *
108db30ca8Sthorpej * The software is provided "as is", without warranty of any kind,
118db30ca8Sthorpej * express or implied, including but not limited to the warranties of
128db30ca8Sthorpej * merchantability, fitness for a particular purpose and
138db30ca8Sthorpej * noninfringement. In no event shall the author(s) be liable for any
148db30ca8Sthorpej * claim, damages or other liability, whether in an action of
158db30ca8Sthorpej * contract, tort or otherwise, arising from, out of or in connection
168db30ca8Sthorpej * with the software or the use or other dealings in the software.
178db30ca8Sthorpej *
188db30ca8Sthorpej * Permission to use, copy, modify, distribute, and sell this software
198db30ca8Sthorpej * and its documentation for any purpose is hereby granted without
208db30ca8Sthorpej * fee, provided that the above copyright notice appear in all copies
218db30ca8Sthorpej * and that both that copyright notice and this permission notice
228db30ca8Sthorpej * appear in supporting documentation.
238db30ca8Sthorpej */
248db30ca8Sthorpej
258db30ca8Sthorpej#ifndef H_DYNLIST
268db30ca8Sthorpej#define H_DYNLIST 1
278db30ca8Sthorpej
288db30ca8Sthorpej#define APPEND_SUCCESS	1
298db30ca8Sthorpej#define APPEND_FAILURE	0
308db30ca8Sthorpej
318db30ca8Sthorpejint append_to_list(char ***list_ptr, int *list_len, int *i, char *item);
328db30ca8Sthorpejint append_to_buf(char **buf, int *buflen, int *i, int c);
338db30ca8Sthorpej
348db30ca8Sthorpej#endif /* H_DYNLIST */
35