envdir.c (413B)
1 /* ISC license. */ 2 3 #include <errno.h> 4 5 #include <skalibs/env.h> 6 #include "envdir-internal.h" 7 8 int envdir_internal (char const *path, stralloc *modifs, unsigned int options, char nullis) 9 { 10 return nullis ? options & SKALIBS_ENVDIR_NOCLAMP ? 11 envdir_internal_noclamp(path, modifs, options & ~SKALIBS_ENVDIR_NOCLAMP, nullis) : 12 envdir_internal_clamp(path, modifs, options, nullis) : (errno = EINVAL, -1) ; 13 }