wlcstdlib.h File Reference

#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)

Detailed Description

Extends the stdlib.h library.

Typedef Documentation

typedef unsigned char byte

byte type for binary operations

typedef byte tiny_int

for operations on very small integers


Function Documentation

int abtoi ( const char *  b,
unsigned  n 
)

Converts binary number writen in string b to an integer using n first bits.

Parameters:
b string with binary number
n number of bits
Returns:
integer number from string b

char* itoab ( int  x,
unsigned  c 
)

Prints x to binary form up to the c bit.

Parameters:
x number to print
c number of bits to print
Returns:
a pointer to the generated string


Generated on Wed Feb 28 10:58:08 2007 for WaLeC's Standard C by  doxygen 1.4.7