1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 23:13:44 +00:00
sbase/libutil/agetcwd.c
2014-11-17 16:48:34 +00:00

19 lines
237 B
C

/* See LICENSE file for copyright and license details. */
#include <unistd.h>
#include "../util.h"
char *
agetcwd(void)
{
char *buf;
long size;
apathmax(&buf, &size);
if (!getcwd(buf, size))
eprintf("getcwd:");
return buf;
}