summaryrefslogtreecommitdiff
path: root/src/libenvexec/env_merge.c
blob: ac3e17cb9d3d1469db24721fb71eb81b734084de (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include <skalibs/bytestr.h>
#include <skalibs/env.h>

size_t env_merge (char const **v, size_t vmax, char const *const *envp, size_t envlen, char const *modifs, size_t modiflen)
{
  return env_mergen(v, vmax, envp, envlen, modifs, modiflen, byte_count(modifs, modiflen, '\0')) ;
}