mirror of
git://git.suckless.org/ubase
synced 2024-12-20 13:50:54 +00:00
19 lines
236 B
C
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;
|
|
}
|
|
|