#include <stdlib.h>
Typedefs | |
typedef unsigned char | byte |
typedef byte | tiny_int |
Functions | |
char * | itoab (int x, unsigned c) |
int | abtoi (const char *b, unsigned n) |
typedef unsigned char byte |
byte type for binary operations
int abtoi | ( | const char * | b, | |
unsigned | n | |||
) |
Converts binary number writen in string b to an integer using n first bits.
b | string with binary number | |
n | number of bits |
char* itoab | ( | int | x, | |
unsigned | c | |||
) |
Prints x to binary form up to the c bit.
x | number to print | |
c | number of bits to print |