> Does anyone know how to write a callback function in C? I know > what they do but have no idea how to write one. What I'm hoping to > do is create a struct and have a pointer to a function contained > in it. After lots of searching I finally found a tutorial on how to do it. If anyone is interested it can be found here: http://www.cs.kau.se/~jorgen/courses/dsa/tutorial/funcptr.html Have fun...