2 * Copyright (C) 2003 Timothy Bauscher <timothy@linuxfromscratch.org>
11 char *locate_book (const char *varname
) {
14 envptr
=getenv(varname
);
15 if (NULL
== envptr
) return(NULL
);
18 if (NULL
==(env
= (char *) malloc((string_len(envptr
)+1) * sizeof(char)) ))
21 env
= string_cpy(envptr
);