I find this bit of code acting weird. I hope I am not
missing something obvious, but, here is what is
happening. When I remove the line:
and compile, it prints out a bit representation of all
8 single digits. When I put it in (because I wanted
to add code for unpacking the digit string) I get a seg fault.
The code seems simple enough...
// int i;
printf("Input 8 decimal digits: \n");
// in here I was going to call a function for
// unpacking the int, to its original string
I should also mention that when I
compiled this with my other functions (which I
will attach) in DOS, they really screwed up.
Instead of packing the int efficiently, it would
default to the ERROR message at the end of the
pack_bit() funtion. In Xandros, they compile and
work great, as long as, like I said, I hash-out the
'int i' part.
Any ideas what I am doing wrong? I will supply
my other funtions if you think it would help...