Skip to Content.
Sympa Menu

freetds - dberrhandle function prototype...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Shivakumar, Pravinkumar (ODC - Satyam)" <PShivakumar AT Satyam.odc.ml.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: dberrhandle function prototype...
  • Date: Mon, 26 Aug 2002 21:35:08 +0530

Hi all,

I am referring to the function call present in
freetds-0.53/src/dblib/unittests/t0001.c.
The function is dberrhandle( syb_err_handler ); and syb_err_handler is
defined as
int syb_err_handler( DBPROCESS *dbproc, int severity, int
dberr, int oserr, char *dberrstr, char
*oserrstr)
so here dberrhandle is defined to take a function pointer with 6 paramatere
but in the header file sybdb.h, dberrhandle is define as
"extern int (*dberrhandle( int (*handler)() )) ();" so handler is defined
to take a function pointer with no parameters..., but still the sample
t0001.c works...
so where is the prototype for dberrhandle,what am i missing here...

Thanking you all in advance,
Pravin Kumar S

<<application/ms-tnef>>




Archive powered by MHonArc 2.6.24.

Top of Page