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

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

size_t ucharn_findlen (char const *s)
{
  size_t i = 0 ;
  while (fmtscan_num(s[i], 16) <= 0xF) i++ ;
  return i ;
}