ladybird/Userland/Utilities/pwd.cpp
2022-01-21 22:10:23 +01:00

18 lines
351 B
C++

/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Format.h>
#include <AK/String.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
ErrorOr<int> serenity_main(Main::Arguments)
{
TRY(Core::System::pledge("rpath stdio"));
outln(TRY(Core::System::getcwd()));
return 0;
}