1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 23:43:33 +00:00
sbase/util/agetcwd.c
Connor Lane Smith 33de3bffdb apathmax
2011-06-25 17:26:44 +01:00

16 lines
233 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;
}