1
0
mirror of git://git.suckless.org/sbase synced 2024-12-24 07:53:08 +00:00
sbase/util/agetcwd.c
2013-03-05 21:46:48 +01:00

19 lines
236 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;
}