for (i=0; i<8; i++) {
if (nbits > 32) { nbits = 32; } for (i=0; i<nbits; i++) {
char *bitprint(unsigned int st) {	static char str[9];	int i, mask;	for (i=0; i<8; i++) {		str[i] = '0';	}	str[8] = '\0';	mask = 1;	for (i=7; i>=0; i--) {		if (st & mask) {			str[i] = '1';		}		mask = mask << 1;	}	return str;}