Store 16 bit words in char array?
Hey, this is my first post I have been a long time creeper, this place is an excellent resource.
My problem is that I am sending data to a PCI card via a c++ console interface, and the data is only to be accepted in a char * buffer. However the data I am sending are all 16 bit blocks of data. I have been trying to find a way to put these values into a short [] array so each word has a unique index, and then cast this into a char [], so far I have been unsuccessful in finding anything...
Is it even possible to make such a type cast? It makes my work much more difficult if I need to split up my 16 bit words into 2 bytes to fit in a char array...