int setenv(const char *name, const char *value, int overwrite)
{
    int result = 0;
    if (overwrite || !getenv(name)) {
        size_t length = strlen(name) + strlen(value) + 2;
        char *string = g_malloc(length);
        snprintf(string, length, "%s=%s", name, value);
        result = putenv(string);
    }
    return result;
}
int setenv(const char *name, const char *value, int overwrite)
{
    int result = 0;
    if (overwrite || !getenv(name)) {
        size_t length = strlen(name) + strlen(value) + 2;
        char *string = g_malloc(length);
        snprintf(string, length, "%s=%s", name, value);
        result = putenv(string);
    }
    return result;
}
int FUNC_0(const char *VAR_0, const char *VAR_1, int VAR_2)
{
    int VAR_3 = 0;
    if (VAR_2 || !getenv(VAR_0)) {
        size_t length = strlen(VAR_0) + strlen(VAR_1) + 2;
        char *VAR_4 = g_malloc(length);
        snprintf(VAR_4, length, "%s=%s", VAR_0, VAR_1);
        VAR_3 = putenv(VAR_4);
    }
    return VAR_3;
}
int FUNC_0(const char *VAR_0, const char *VAR_1, int VAR_2)
{ int VAR_3 = 0; if (VAR_2 || !getenv(VAR_0)) { size_t length = strlen(VAR_0) + strlen(VAR_1) + 2; char *VAR_4 = g_malloc(length); snprintf(VAR_4, length, "%s=%s", VAR_0, VAR_1); VAR_3 = putenv(VAR_4); } return VAR_3; }