ladybird/Userland/Utilities/pwd.cpp

18 lines
345 B
C++
Raw Normal View History

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