Files
MentOS/programs/tests/t_exec_callee.c
T
2024-01-15 15:26:56 +01:00

19 lines
439 B
C

/// @file t_exec_callee.c
/// @brief
/// @copyright (c) 2014-2023 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
char *ENV_VAR = getenv("ENV_VAR");
if (ENV_VAR == NULL) {
printf("Failed to get env: `ENV_VAR`\n");
return EXIT_FAILURE;
}
printf("ENV_VAR = %s\n", ENV_VAR);
return EXIT_SUCCESS;
}