blob: ed93fa3f3a7f1b13e14705656811e95e20d172db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <skalibs/fmtscan.h>
#include <skalibs/biguint.h>
size_t bu_scanlen (char const *s, size_t *zeron)
{
size_t n = ucharn_findlen(s) ;
*zeron = n ;
while (*s == '0') { s++ ; (*zeron)-- ; }
return n ;
}
|