3 #include "search_list.h"
7 DEFUN(search_list_append, (list, paths),
8 Search_List *list AND const char *paths)
10 Search_List_Elem *new_el;
11 const char *beg, *colon;
17 colon = strchr(beg, ':');
23 new_el = (Search_List_Elem*) xmalloc(sizeof(*new_el) + len);
24 memcpy(new_el->path, beg, len);
25 new_el->path[len] = '\0';
27 /* append new path at end of list: */
30 list->tail->next = new_el;
36 } /* search_list_append */
38 /*** end of search_list.c ***/