projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b64b560feeb5bf71d24f2354721a7b39d1f85004
[musl]
/
getcwd.c
1
#include <unistd.h>
2
#include <errno.h>
3
#include "syscall.h"
4
5
char *getcwd(char *buf, size_t size)
6
{
7
return syscall(SYS_getcwd, buf, size) < 0 ? NULL : buf;
8
}