<code>void increase (void* data, int psize){<br> if ( psize == sizeof(char) ){<br> char* pchar; pchar=(char*)data; ++(*pchar); }<br> else if (psize == sizeof(int) ){<br> int* pint; pint=(int*)data; ++(*pint); }<br>}<br></code>unless I'm mistaken, according to the spec sizeof(char) can equal sizeof(int)
also, I have not adjusted the formatting from the lecture notes presentation pdf. that's just exactly what he wrote