17 lines
341 B
C
17 lines
341 B
C
/// @file env.c
|
|
/// @brief `env` program.
|
|
/// @copyright (c) 2014-2023 This file is distributed under the MIT License.
|
|
/// See LICENSE.md for details.
|
|
|
|
#include <sys/unistd.h>
|
|
#include <stdio.h>
|
|
|
|
extern char **environ;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
for (char **ep = environ; *ep; ++ep)
|
|
printf("%s\n", *ep);
|
|
return 0;
|
|
}
|