diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-15 17:09:29 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-15 17:09:29 +0100 |
| commit | 99fdad9a3abc7f3ba871575f585d254351e5a8d3 (patch) | |
| tree | a72beca9653c1bd092435ac8b75df8c6053ae719 | |
| parent | 552899281eb67c6e652be15f46104c4de8c4a936 (diff) | |
add cwd
| -rw-r--r-- | core/cwd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/cwd.c b/core/cwd.c new file mode 100644 index 0000000..ab858c7 --- /dev/null +++ b/core/cwd.c @@ -0,0 +1,11 @@ +#include "../lib/sys/getcwd.h" +#include "../lib/io/io.h" + +char buf[1024] = { 0 }; + +int main() +{ + getcwd(buf, 1024); + wstdf("%s\n", buf); + return 0; +} |