ladybird/Userland/Utilities/pwd.cpp

18 lines
268 B
C++
Raw Normal View History

2021-07-06 18:52:19 +00:00
/*
* 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;
}