summaryrefslogtreecommitdiff
path: root/src/libstddjb/str_len.c
blob: 75bd1f24cbee7ccca5ec05c6a164e43dc9f7c703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ISC license. */

#include <skalibs/config.h>

#ifdef SKALIBS_FLAG_REPLACE_LIBC

#include <skalibs/bytestr.h>

unsigned int str_len (char const *s)
{
  register unsigned int len = 0 ;
  while (*s++) len++ ;
  return len ;
}

#endif