aboutsummaryrefslogtreecommitdiff
path: root/core/cwd.c
blob: d984e6aaf8286b89374a94467cd48f8efe5a92fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "../lib/sys/getcwd.h"
#include "../lib/io/io.h"

char buf[1024] = { 0 };

int main()
{
	getcwd(buf, 1024);

	if (buf[0] == '/' && buf[1] == 0) {
		wstdf("%s\n", buf);
	} else {
		wstdf("%s/\n", buf);
	}

	return 0;
}