tvheadend/support/dataroot/wd.c
2012-06-26 14:17:04 +01:00

13 lines
219 B
C

#include <string.h>
#include <unistd.h>
#include <assert.h>
const char *tvheadend_dataroot(void)
{
static char cwd[256] = { 0 };
if (!*cwd) {
assert(getcwd(cwd, 254));
strcat(cwd, "/");
}
return cwd;
}