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
;
18 colon
= strchr (beg
, ':');
27 new_el
= (Search_List_Elem
*) xmalloc (sizeof (*new_el
) + len
);
28 memcpy (new_el
->path
, beg
, len
);
29 new_el
->path
[len
] = '\0';
31 /* append new path at end of list: */
35 list
->tail
->next
= new_el
;