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

#include <skalibs/env.h>

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