summaryrefslogtreecommitdiff
path: root/environment.h
blob: d438b5c8f3a62226a3a1cc32bb9ab9d9def25a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef ENVIRONMENT_H
#define ENVIRONMENT_H

#include "strvec.h"

/*
 * Wrapper of getenv() that returns a strdup value. This value is kept
 * in argv to be freed later.
 */
const char *getenv_safe(struct strvec *argv, const char *name);

#endif