looking for dbfcmd
camber at ais.org
Thu Mar 15 16:32:35 EST 2001
> I'm checking out freetds for the first time. I've noticed in
> the unit test modules for libdb a sprintf was used to accomplish
> the same thing. I have a lot of code which would require changes.
> Any one know of a fix?
This code snipet should work...just add it to src/dblib/dblib.c and
The only major thing wrong with it is that the 'tmpstr' is statically
sized at 4096 bytes...we need a way to determine the size of the resulting
RETCODE dbfcmd(DBPROCESS *dbproc, char *fmt, ...)
vsprintf(tmpstr, fmt, ap);
More information about the FreeTDS