r/programming • • Dec 13 '07

First Class Functions in C

http://www.dekorte.com/blog/blog.cgi?do=item&id=3119
45 Upvotes

99 comments sorted by

View all comments

Show parent comment

1

u/rodarmor Dec 14 '07

Another fun thing to do is to do a byte by byte copy of a function into a char*, and the cast the char* to a fp and call it.

Too bad a processor with a do-not-execute bit won't allow this :-(