blob: 098d13e878c7ecb0c29fc2fa918f7d0475e38c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
#if defined(_WIN32_WCE)
// no environment in Windows CE
return 0;
#else
if (argc == 1)
return 1;
char *env = getenv(argv[1]);
if (env) {
printf("%s", env);
return 0;
}
return 1;
#endif
}
|