xstrm.c
/*---------------------------------------------------------------------
 * ocierror - Print error status and exit program
 *---------------------------------------------------------------------*/
Print error status and exit program
Print error status and exit program
static void ocierror(oci_t * ocip, char * msg)
{
  sb4 errcode=0;
  text bufp[4096];
  if (ocip->errp)
  {
    OCIErrorGet((dvoid *) ocip->errp, (ub4) 1, (text *) NULL, &errcode,
                bufp, (ub4) 4096, (ub4) OCI_HTYPE_ERROR);
    printf("%s\n%s", msg, bufp);
  }
  else
    puts(msg);
  printf ("\n");
  exit(1);
}
static void ocierror ( oci_t * ocip , char * msg ) { sb4 errcode = 0 ; text bufp [ 4096 ] ; if ( ocip -> errp ) { OCIErrorGet ( ( dvoid * ) ocip -> errp , ( ub4 ) 1 , ( text * ) NULL , & errcode , bufp , ( ub4 ) 4096 , ( ub4 ) OCI_HTYPE_ERROR ) ; printf ( " \n " , msg , bufp ) ; } else puts ( msg ) ; printf ( " \n " ) ; exit ( 1 ) ; }
ocierror - Print error status and exit program
ocierror - Print error status and exit program