I’ve doing some simple experiments with gradual feature learning neural nets:
http://www.freebasic.net/forum/viewtopic.php?f=5&p=227658#p227658
The code is in FreeBasic + threads. I guess it is not so easy to read. However the way it is written you can almost verbatim translate it into C (if you like, if you want to, I would expect zero people to do that!)