summaryrefslogtreecommitdiff
path: root/Userland/Utilities/pwd.cpp
blob: 43fa05c8b18dd2b905dc117d1b1291f5c7eedea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int, char**)
{
    char* cwd = getcwd(nullptr, 0);
    puts(cwd);
    free(cwd);
    return 0;
}