static char *expath(char *,int);
static void compath(char *);
+
+/* Return value must be free(3)'d. */
char *
pluspath(char *name)
{
return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF);
}
+
+/* Return value must be free(3)'d. */
char *
path(char *name, int flag)
{
char *p, *last;
p = expath(name, flag);
- if (!p)
- return NULL;
-
last = p + strlen(p) - 1;
if (last > p && *last == '/')
*last = '\0';
}
+/* Return value must be free(3)'d. */
static char *
expath (char *name, int flag)
{