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