summaryrefslogtreecommitdiff
path: root/src/libstddjb/env_len.c
blob: f551ce162a9cba4f5404f5d13759700328f6a897 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <sys/types.h>
#include <skalibs/env.h>

size_t env_len (char const *const *e)
{
  size_t i = 0 ;
  while (*e++) i++ ;
  return i ;
}