libcfe
0.12.1
some useful C-functions
int_size.c
Go to the documentation of this file.
1
#include "config.h"
2
#include "
int_size.h
"
3
4
size_t
int_size
(
unsigned
long
long
i,
unsigned
int
base)
5
{
6
size_t
j;
7
for
(j = 0; i > 0; j++)
8
i = (i - (i % base)) / base;
9
10
return
(j == 0 ? 1 : j);
11
}
int_size
size_t int_size(unsigned long long i, unsigned int base)
Definition:
int_size.c:4
int_size.h
cfe
int_size.c
Generated on Tue Jan 31 2023 09:56:30 for libcfe by
1.8.14