freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Mark J. Lilback" <mark AT lilback.com>
- To: freetds mailing list <freetds AT franklin.oit.unc.edu>
- Subject: changes to dblib.c
- Date: Mon, 26 Mar 2001 16:20:20 -0500
Here's some code to implement two unimplemented functions in dblib.c.
int dbstrlen(DBPROCESS *dbproc)
{
return dbproc->dbbufsz;
}
RETCODE dbstrcpy(DBPROCESS *dbproc, int start, int numbytes, char *dest)
{
dest[0] = 0; /* start with empty string being returned */
if (0 < dbproc->dbbufsz) {
strncpy(dest, (char*)&dbproc->dbbuf[start], numbytes);
}
return SUCCEED;
}
--
__________________________________________________________________________
"The best assumption to have
Mark J. Lilback is that any commonly held
<mark AT lilback.com> belief is wrong." -- Ken Olsen,
http://www.lilback.com/ founder, Digital Equip. Corp.
- changes to dblib.c, Mark J. Lilback, 03/26/2001
Archive powered by MHonArc 2.6.24.