Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
PUTENV_CONST_CHAR.cpp
Go to the documentation of this file.
1// checking for putenv() in <stdlib.h>
2
3
25#include <stdlib.h>
26
27// [re]declare with the expected POSIX signature which will fail
28// to compile if the implementation declares putenv(char*)
29// (e.g., HP-UX, IRIX, etc.)
30extern "C" int putenv (const char*);
31
32int foo ()
33{
34 const char *var = "foobar";
35
36 return putenv (var);
37}
#define var
Definition 17.names.cpp:573
int putenv(const char *)
int foo()