aboutsummaryrefslogtreecommitdiff
path: root/src/env.c
blob: 43bf8d78394043fbb27d4d61f0dfae89bbe0fea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>
#include "env.h"

char* getenv_default(const char* name, char* default_val)
{
    char* val = getenv(name);
    if (!val)
        val = default_val;

    return val;

}