hi Forum! I have declared an char-array, for a simple Data stream buffer of bits: char data[] = "101101010011111@". And now just want cast this items to a integer-value. How can i do this in simplest way, without sum the bits bitwise via pointer? cu O. Swid
Is this library function of any use to you? http://www.keil.com/support/man/docs/c51/c51_strtoul.htm In your case the base will be 2, of course.