Hi dear all,
Is it safe to allocate buffer from stack in the callback like this ?
static sb4 CBIN(
void *ictxp,
OCIBind *bindp,
ub4 iter,
ub4 index,
void **bufpp,
ub4 *alenp,
ub1 *piecep,
void **indp)
{
char buf[100];
sprintf(buf,"TEST %d %d",iter,index);
*bufpp = buf;
...
return OCI_CONTINUE;
}