I've tried everything to figure this out and I don't get what I'm doing wrong. converting to signed makes everything past the numerical hex values and I know if I have an integer I can straight up use "ULL" to convert it and bitshift away but I can't figure out
basically
void tick(unsigned long* tmp) { //input as a parameter
signed long temp = tmp;
printf("%x\n", temp >> 16 & 0xff);
tmp = (signed) temp;
return;
}
EDIT: so I'm stupid and I should've used %lu not %x, now I can see my results but I don't see any change occurring with clock, even with bitshifting the temp