I found an example in C with source code and header files here for fractal generating.

http://gameprogrammer.com/fractal.html