dbstrlen

DB Library for C

DB Library for C

dbstrlen

Returns the length, in characters, of the command buffer.

Syntax

INT dbstrlen ( PDBPROCESS dbproc );

Arguments

dbproc

Is the DBPROCESS structure that is the handle for a particular workstation or Microsoft® SQL Server™ 2000 process. It contains all the information that DB-Library uses to manage communications and data between the workstation and SQL Server.

Returns

The length, in characters, of the command buffer.

Remarks

Internally, the command buffer is a linked list of nonterminated text strings. Parts of the command buffer can be located and copied using the dbgetchar, dbstrcpy, and dbstrlen functions.

See Also

dbcmd

dbgetchar

dbfcmd

dbstrcpy

dbfreebuf