home-expand.c revision 4b9a8c4fe16db92f5c7dcf474eb0d906c361122c
/* 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;
}
{
return path;
return home;
return path;
/* ~/ used */
}