Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » SetEnv()
SetEnv() [message #37243] Tue, 11 September 2012 10:28 Go to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Hello Mirek

I could not find a setenv function. This could be an implementation:
bool SetEnv(const char *id, const char *val) 
{
#ifdef PLATFORM_POSIX
	return setenv(id, val, 1) == 0;
#else
	return _wputenv(WString(id) + "=" + WString(val)) == 0;
#endif
}


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: build Core to static library problem:Value.cpp | 168 | note:type was declared here
Next Topic: LocalProcess to read from stderr
Goto Forum:
  


Current Time: Mon Apr 29 14:42:33 CEST 2024

Total time taken to generate the page: 0.02580 seconds