I have a 4bytes in a char buffer and I wish to cast to int.
I'm currently using the code below..
int *aa = (int*)aBuffer;
int bb = *aa;
Can i shorten this code somehow? I seem to have one more int variable than necessary.
My pointer skills are not too great.
Something like this..
int bb = (int)&aBuffer
..would be much prettier, but i can guess it does not work.
Any ideas?