Skip to Content.
Sympa Menu

freetds - Re: dberrhandle function prototype...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: jklowden AT speakeasy.net
  • To: "TDS Development Group" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: dberrhandle function prototype...
  • Date: Mon, 26 Aug 2002 09:23:18 -0700


> 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)
...
> but in the header file sybdb.h,
> dberrhandle is define as "extern int
> (*dberrhandle( int (*handler)() )) ();"
...
> what am i missing here...

Pravin,

You're used to modern ANSI C or C++, with full prototypes. The form without
arguments is the old style, simply telling the compiler of the name, and
leaving to the programmer the problem of getting the arguments right.

Cf. K&R, 2nd edition, page 26 or so.

Regards,

--jkl



  • dberrhandle function prototype..., Shivakumar, Pravinkumar (ODC - Satyam), 08/26/2002
    • <Possible follow-up(s)>
    • Re: dberrhandle function prototype..., jklowden, 08/26/2002

Archive powered by MHonArc 2.6.24.

Top of Page