blob: d5a289fb4906005ac656656a2e79c1c4b1834adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if (argc == 1)
return 1;
char *env = getenv(argv[1]);
if (env) {
printf("%s", env);
return 0;
}
return 1;
}
|