source: trunk/athena/lib/athdir/stringlist.h @ 11251

Revision 11251, 1.1 KB checked in by cfields, 26 years ago (diff)
Header file for string support.
Line 
1/* $Id: stringlist.h,v 1.1 1998-03-17 03:44:04 cfields Exp $ */
2
3/* Copyright 1998 by the Massachusetts Institute of Technology.
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for any purpose and without
7 * fee is hereby granted, provided that the above copyright
8 * notice appear in all copies and that both that copyright
9 * notice and this permission notice appear in supporting
10 * documentation, and that the name of M.I.T. not be used in
11 * advertising or publicity pertaining to distribution of the
12 * software without specific, written prior permission.
13 * M.I.T. makes no representations about the suitability of
14 * this software for any purpose.  It is provided "as is"
15 * without express or implied warranty.
16 */
17
18typedef struct {
19  int alloced, length;
20  char **strings;
21} string_list;
22
23int athdir__add_string(string_list **list, char *string, int front);
24int athdir__parse_string(string_list **list, char *string, char sep);
25char **athdir__make_string_array(string_list **list);
26void athdir__free_string_array(char **array);
Note: See TracBrowser for help on using the repository browser.