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

#include <skalibs/env.h>

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