Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

int setenv(const char *name, const char *value, int replace);

Internationalization (I18n) Function Overview

The setenv function can be used to add a new definition to the environment. The entry with the name name is replaced by the value name=value. Please note that this is also true if value is the empty string. To do this a new string is created and the strings name and value are copied. A null pointer for the value parameter is illegal. If the environment already contains an entry with key name the replace parameter controls the action. If replace is zero, nothing happens. Otherwise the old entry is replaced by the new one.

I18n Issues

There is no ANSI wide character version of setenv. Instead, use a conversion routine to convert the wide character strings to multibyte strings and call setenv.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Locale-Sensitive C/C++ String Operation Functions

 

Lingoport internationalization and localization services and software