summaryrefslogtreecommitdiff
path: root/src/libbiguint/bu_len.c
blob: 6e66b17354e13f7702fd830cc3bd4134ce836de9 (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include <skalibs/biguint.h>

unsigned int bu_len (uint32_t const *a, unsigned int n)
{
  while (n--) if (a[n]) return n+1 ;
  return 0 ;
}