The cci_set_max_row function configures the maximum number of records for the results of the SELECT statement executed by cci_execute. If the max value is 0, it is the same as not setting the value.
intcci_set_max_row(int req_handle, int max)
req = cci_prepare( … );
cci_set_max_row(req, 1);
cci_execute( … );