diff options
Diffstat (limited to 'src/libenvexec/env_len.c')
-rw-r--r-- | src/libenvexec/env_len.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libenvexec/env_len.c b/src/libenvexec/env_len.c new file mode 100644 index 0000000..eef30c4 --- /dev/null +++ b/src/libenvexec/env_len.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include <skalibs/env.h> + +size_t env_len (char const *const *e) +{ + size_t i = 0 ; + while (*e++) i++ ; + return i ; +} |