ladybird/Userland/Utilities/pwd.cpp
2021-12-24 14:29:52 -08:00

17 lines
345 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("stdio"));
outln(TRY(Core::System::getcwd()));
return 0;
}