The interpreter complains about the following lines:
I can imagine that he doesn't like the spelling (void * ptr). but I am not sure how it (if wrong) has to be spelled correctly.