VirtualBox

Changeset 25942 in vbox for trunk/include


Ignore:
Timestamp:
Jan 20, 2010 5:26:22 PM (15 years ago)
Author:
vboxsync
Message:

*: RTEnv usage cleanup - avoid RTEnvGet() as it doesn't necessarily return UTF-8 encoded strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/env.h

    r21388 r25942  
    130130 *
    131131 * @returns IPRT status code.
     132 * @retval  VERR_ENV_VAR_NOT_FOUND if the variable was not found.
    132133 *
    133134 * @param   Env         The environment handle.
     
    212213RTDECL(int) RTEnvUnsetEx(RTENV Env, const char *pszVar);
    213214
     215/**
     216 * Duplicates the value of a environment variable if it exists.
     217 *
     218 * @returns Pointer to a string containing the value, free it using RTStrFree.
     219 *          NULL if the variable was not found or we're out of memory.
     220 *
     221 * @param   Env         The environment handle.
     222 * @param   pszVar      The environment variable name.
     223 */
     224RTDECL(char *) RTEnvDupEx(RTENV Env, const char *pszVar);
     225
    214226#endif /* IN_RING3 */
    215227
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette