00001 /* 00002 * Copyright (C) 2000-2003 KFA: Andrew Moenk and Alex Scott 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Library General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public 00015 * License along with this program; if not, write to the 00016 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 * Boston, MA 02111-1307, USA. 00018 */ 00019 00024 #include "cuf-global.h" 00025 #include "strings.h" 00026 00027 #ifndef _ARRAY_H_ 00028 # define _ARRAY_H_ 00029 00030 /*** String Based Array Functions */ 00031 00032 char **array_string_explode (char *string, char sep, char pad); 00033 char **array_string_boundify (char *str, int colwid); 00034 char *array_string_implode (char **array, char *sep, char pad, int defwid); 00035 char **array_string_append (char **array, char *text); 00036 int array_string_search (char **array, char *search); 00037 char **array_string_remove (char **array, void *ptr); 00038 char **array_string_remove_bytext (char **array, char *matchtext, 00039 int allinst); 00040 void array_string_print (char **array); 00041 void array_string_free (char **array); 00042 00043 #endif /* _ARRAY_H_ */