MCPcopy Create free account
hub / github.com/Entware/Entware / env_add

Function env_add

scripts/config/preprocess.c:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42};
43
44static void env_add(const char *name, const char *value)
45{
46 struct env *e;
47
48 e = xmalloc(sizeof(*e));
49 e->name = xstrdup(name);
50 e->value = xstrdup(value);
51
52 list_add_tail(&e->node, &env_list);
53}
54
55static void env_del(struct env *e)
56{

Callers 1

env_expandFunction · 0.85

Calls 3

xmallocFunction · 0.85
xstrdupFunction · 0.85
list_add_tailFunction · 0.70

Tested by

no test coverage detected