summaryrefslogtreecommitdiff
path: root/userland/minibox/utilities/pwd.c
blob: 29d8129124087901000f03edc94e5d0ae7e81ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "include.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>

int pwd_main(int argc, char **argv) {
  char cwd[PATH_MAX];
  COND_PERROR_EXP(NULL == (getcwd(cwd, PATH_MAX)), "getcwd", return 1);
  puts(cwd);
  return 0;
}