uni_csr_disp.c example program

The uni_csr_disp.c example program demonstrates using a read-only cursor. It is a modification of the uni_csr_disp.c sample program and requires the unipubs database. It opens a cursor with a canned query. It processes the results using the standard ct_results while loop. It binds the column values to program variables. It then fetches and displays the rows in the standard ct_fetch while loop.

Following is the canned query:

select au_fname, au_lname, postalcode 
 from authors