Files
MentOS/programs/pwd.c
T
2023-01-19 10:09:52 -05:00

17 lines
327 B
C

/// @file pwd.c
/// @brief
/// @copyright (c) 2014-2023 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include <sys/unistd.h>
#include <limits.h>
#include <stdio.h>
int main(int argc, char** argv)
{
char cwd[PATH_MAX];
getcwd(cwd, PATH_MAX);
printf("%s\n", cwd);
return 0;
}