You might like it that way, but using a defined type for a variable which has nothing to do with its pre-defined meaning could lead to all sorts of weird errors. Consider what happens to the sign bits when you try to perform some math or display operations on integers compared to words. Similar but worse problems will happen with floating point types.
Personally i dont see what is wrong with just defining an 8 byte array. The printbin and inputbin functions handle byte arrays completely transparently.
Then at least when someone wants a 10 byte PIN, you are not completely lost again.
↧