12 lines
197 B
C
12 lines
197 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));
|
|
}
|
|
return cwd;
|
|
}
|