BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionUserland / commit / 19aefaad8af9de8719ba1e5b5340e0a1b9c68853 / pwd / main.c

// Related

OrionUserland

Barry Importing existing Orion Userland 19aefaa (2 years, 4 months ago)
diff --git a/pwd/main.c b/pwd/main.c
new file mode 100644
index 0000000..be5c76f
--- /dev/null
+++ b/pwd/main.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <unistd.h>
+#include <sys/limits.h>
+
+/* Main function */
+int
+main(int argc, char *argv[])
+{
+	char cwd[PATH_MAX];
+	getcwd(cwd, PATH_MAX);
+	printf("%s\n", cwd);
+
+	return 0;
+}