skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

ucharn_findlen.c (167B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/fmtscan.h>
      4 
      5 size_t ucharn_findlen (char const *s)
      6 {
      7   size_t i = 0 ;
      8   while (fmtscan_num(s[i], 16) <= 0xF) i++ ;
      9   return i ;
     10 }