ft_numlen - kibotrel/42-Libft GitHub Wiki

unsigned int	ft_numlen(long value, int base)

Description :

Retrieves the number of digits of any given long value in any base base between 2 and 16

Return Value :

Returns the "size" of the number value expressed in base base for both positive and negative numbers if base = 10, only positive numbers will be processed for any other handled bases, in this case, the opposite of value will be used.

Source code