- 论坛徽章:
- 0
|
手册中有这么一句
- NOTES
- The strings in the environment list are of the form name=value.
- As typically implemented, getenv() returns a pointer to a string within the environment list. The caller must take care
- not to modify this string, since that would change the environment of the process.
- The implementation of getenv() is not required to be reentrant. The string pointed to by the return value of getenv()
- may be statically allocated, and can be modified by a subsequent call to getenv(), putenv(3), setenv(3), or unsetenv(3).
复制代码 |
|