Rename util/ to libutil/
This commit is contained in:
18
libutil/agetcwd.c
Normal file
18
libutil/agetcwd.c
Normal file
@@ -0,0 +1,18 @@
|
||||
/* 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user