test-runner.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: The SourceWorks Tue Sep 7 00:54:57 CEST 2010 test-runner.hpp
3 
4  test-runner.hpp - description
5  -------------------
6  begin : Tue September 07 2010
7  copyright : (C) 2010 The SourceWorks
8  email : peter@thesourceworks.com
9 
10  ***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 
20 #ifdef WIN32
21 int setenv(const char *name, const char *value, int overwrite)
22 {
23  if (overwrite == 0)
24  {
25  char c;
26  if (GetEnvironmentVariable(name, &c, sizeof (c)) > 0) return 0;
27  }
28 
29  if (SetEnvironmentVariable(name, value) != 0) return 0;
30  return -1;
31 }
32 #endif
int setenv(const char *name, const char *value, int overwrite)
Definition: fosi.cpp:64


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:44