aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-02-15 17:09:29 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-02-15 17:09:29 +0100
commit99fdad9a3abc7f3ba871575f585d254351e5a8d3 (patch)
treea72beca9653c1bd092435ac8b75df8c6053ae719 /core
parent552899281eb67c6e652be15f46104c4de8c4a936 (diff)
add cwd
Diffstat (limited to 'core')
-rw-r--r--core/cwd.c11
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;
+}