X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fio.c;fp=src%2Fio.c;h=aeeed8c962c3f9e8c57f29fa57d93b461f18d6f8;hb=df19eac22b08c4793607679e2ea471ae64b824fd;hp=2cce202d120bd925b7cfdbf94da3e60879def4e1;hpb=6b077ee78bd064474b576e076383503e682a1dd2;p=ppastats.git diff --git a/src/io.c b/src/io.c index 2cce202..aeeed8c 100644 --- a/src/io.c +++ b/src/io.c @@ -19,6 +19,7 @@ #include #include +#include #include "io.h" @@ -75,3 +76,15 @@ int fcopy(const char *src, const char *dst) return ret; } + +char *path_append(const char *odir, const char *name) +{ + char *dir; + + dir = malloc(strlen(odir)+1+strlen(name)+1); + + sprintf(dir, "%s/%s", odir, name); + + return dir; +} +