how can i write my own module in C ? is it possible ?
Yes, it is possible. Here's an old article that I used when I wrote my first extension:
http://web.archive.org/web/20110222035803/http://devzone.zend.com/article/1021
Things may have changed since then, so you may want to search for similar tutorials for additional references.
Oh, and this should be useful: