#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; }