The ex04ct.c migration sample program illustrates array binding. ex04ct.c is DB-Library’s example4.c converted to Client-Library. ex04ct.c illustrates conversion of DB-Library row buffering code to Client-Library array binding code. ex04ct.c actually calls routines in the ctrowbuf.c migration sample to perform array binding. ctrowbuf.c is a simple array binding utility library. The examples are located in the following directory:
$SYBASE/$SYBASE_OCS/sample/dblibrary on UNIX
%SYBASE%\%SYBASE_OCS%\sample\dblib on Microsoft Windows
See the Open Client and Open Server Programmers Supplement for your platform.