If I have a number stored in a character array and try to casr to an integer it returns the incorrect result using array notation.
int i; int ii=443221; char test[20] memcpy(test, ii, sizeof(ii)); i = *(int*)test <--- This works memcpy(&test[4], ii, sizeof(ii)); i = *(int*)&test[4] <--- This doesn't work i = *(int*)(test+4) <--- This works Any takers? :) Thanks, Mike H. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/tinycc-devel