Hi

Have a look at this link might be of some help to you

http://www.orafaq.com/scripts/c_src/extproc.txt

Regards