2000-05-16 05:24:54 -04:00
|
|
|
/* build a list from a null-terminated char* vector. */
|
|
|
|
#include "cstuff.h"
|
|
|
|
s48_value char_pp_2_string_list(char **vec){
|
|
|
|
char ** ptr = vec;
|
|
|
|
s48_value list = S48_NULL;
|
|
|
|
|
|
|
|
S48_DECLARE_GC_PROTECT(1);
|
|
|
|
S48_GC_PROTECT_1(list);
|
2000-05-22 07:59:22 -04:00
|
|
|
|
|
|
|
while (ptr && *(ptr)){
|
2000-05-16 05:24:54 -04:00
|
|
|
list = s48_cons (s48_enter_string (*ptr), list);
|
2000-05-22 07:59:22 -04:00
|
|
|
ptr++;
|
2000-05-16 05:24:54 -04:00
|
|
|
}
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return list;
|
|
|
|
}
|