home-expand.c revision 04642be43be61ed4968fd564cd1b062baa73ea74
/* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "home-expand.h"
#include <stdlib.h>
#include <pwd.h>
int home_try_expand(const char **_path)
{
return 0;
} else {
if (p == NULL) {
path = "";
} else {
path = p+1;
}
}
return -1;
if (*path == '\0')
else
return 0;
}
const char *home_expand(const char *path)
{
(void)home_try_expand(&path);
return path;
}