src/utils/system_utils/src/system_utils.c
const char* ADUC_SystemUtils_GetTemporaryPathName()
{
    const char* env;
    env = getenv("TMPDIR");
    if (env == NULL)
    {
        env = getenv("TMP");
        if (env == NULL)
        {
            env = getenv("TEMP");
            if (env == NULL)
            {
                env = getenv("TEMPDIR");
                if (env == NULL)
                {
                    static char* root_tmp_folder = "/tmp";
                    env = root_tmp_folder;
                }
            }
        }
    }

    return env;
}
/**
 * @brief Retrieve system temporary path with a subfolder.
 *
 * This only returns a folder name, which is neither created nor checked for existence.
 *
 * Loosely based on Boost's implementation, which is:
 * TMPDIR > TMP > TEMP > TEMPDIR > (android only) "/data/local/tmp" > "/tmp"
 *
 * @return const char* Returns the path to the temporary directory. This is a long-lived string.
 */
@brief Retrieve system temporary path with a subfolder.
This only returns a folder name, which is neither created nor checked for existence.



@return const char* Returns the path to the temporary directory. This is a long-lived string.
@brief Retrieve system temporary path with a subfolder . This only returns a folder name which is neither created nor checked for existence . @return const char * Returns the path to the temporary directory . This is a long - lived string .
const char* ADUC_SystemUtils_GetTemporaryPathName()
{
    const char* env;
    env = getenv("TMPDIR");
    if (env == NULL)
    {
        env = getenv("TMP");
        if (env == NULL)
        {
            env = getenv("TEMP");
            if (env == NULL)
            {
                env = getenv("TEMPDIR");
                if (env == NULL)
                {
                    static char* root_tmp_folder = "/tmp";
                    env = root_tmp_folder;
                }
            }
        }
    }
    return env;
}
const char * ADUC_SystemUtils_GetTemporaryPathName ( ) { const char * env ; env = getenv ( " " ) ; if ( env == NULL ) { env = getenv ( " " ) ; if ( env == NULL ) { env = getenv ( " " ) ; if ( env == NULL ) { env = getenv ( " " ) ; if ( env == NULL ) { static char * root_tmp_folder = " " ; env = root_tmp_folder ; } } } } return env ; }
@brief Retrieve system temporary path with a subfolder.
@brief Retrieve system temporary path with a subfolder .