- Joined
- Jul 13, 2009
- Messages
- 1
- Reaction score
- 0
- Example:
unsigned short *p = (unsigned short *)malloc(0x2000 * sizeof(unsigned short));
- Is the cast on malloc needed?
- Plus, if I do:
unsigned short *x = &p[3];
- So, x starts at byte 6, or 3rd value, correct?
unsigned short *p = (unsigned short *)malloc(0x2000 * sizeof(unsigned short));
- Is the cast on malloc needed?
- Plus, if I do:
unsigned short *x = &p[3];
- So, x starts at byte 6, or 3rd value, correct?