Justin Richards escreveu: > Thanks Isaac, > = You are welcome. > your readbit function does the trick. > = Here is a much more efficient version for up to 256 bits: char ReadBit( char *v, char n ) { return ( v[n>>3] >> ( n & 7 )) & 0x01; } > Cheers Justin > = Best regards, Isaac __________________________________________________ Fa=E7a liga=E7=F5es para outros computadores com o novo Yahoo! Messenger = http://br.beta.messenger.yahoo.com/ = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist