summaryrefslogtreecommitdiff
path: root/src/libstddjb/ucharn_findlen.c
blob: 59b5577c95328f9bf186905a7c7c23fffd370f8c (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)
{
  register size_t i = 0 ;
  while (fmtscan_num(s[i], 16) <= 0xF) i++ ;
  return i ;
}