3 ms·
Not quite, what you want is unsigned char * volatile p = malloc(w * h); This indicates that p itself is a volatile variable, rather than a pointer to memory
by dooglius 9y ago
Not quite, what you want is
unsigned char * volatile p = malloc(w * h);
This indicates that p itself is a volatile variable, rather than a pointer to memory that is volatile.
- mar77i 9y agoAh, that was the thing I was after. Thanks.