xt_digits(3)

NAME
xt_digits() - Compute the number of xt_digits in an integer in any base

LIBRARY
#include <xtend/math.h>
-lxtend

SYNOPSIS
int     xt_digits(long val, unsigned base)

ARGUMENTS
val:    The number for which xt_digits are to be counted
base:   The number base, between 2 and 36

DESCRIPTION
xt_digits() computes the number of xt_digits in val, assuming the given base.

RETURN VALUES
The number of base "base" xt_digits in val, or -1 if base is invalid