What is the best way to convert an array of chars to bytes and vice versa?
Solution:
void CharToByte(char* chars, byte* bytes, unsigned int count){
The type char is one of the few types that has a size guaranteed by the ANSI standard and that size is 1 byte. As far as I know C does not directly define the type byte. However it would be just short of insane to have a type named byte which is not in fact a byte in size. Therefore a simple cast should do the trick.