libcfe  0.12.1
some useful C-functions
int_to_bit.c File Reference
#include "config.h"
#include "int_to_bit.h"
#include "int_size.h"
Include dependency graph for int_to_bit.c:

Go to the source code of this file.

Functions

size_t int_to_bit1 (unsigned long long i, unsigned char **s, unsigned int base)
 

Function Documentation

◆ int_to_bit1()

size_t int_to_bit1 ( unsigned long long  i,
unsigned char **  s,
unsigned int  base 
)

Turn an integer into a binary value which is stored as a string.

Parameters
[in]iThe number that needs to be converted.
[out]sMust be a NULL pointer.
[in]baseThe base number.
Returns
The number of characters in 's' points to. The terminating '\0' is not counted, but is present at the end of the string. The allocated memory is one more than the returned value and can be freed with free().

Definition at line 6 of file int_to_bit.c.

Here is the call graph for this function:
Here is the caller graph for this function: