What you do is write your C code using Pro*C. There are commands in Pro*C to connect to Oracle and to submit queries and retreive cursors.
When you build, Pro*C has a preprocess that changes these Pro*C commands to C. Then yur file is passed to the normal C pre-processor and from there to the compiler and linker.
Comment