Return the length, in characters, of the command buffer.
int dbstrlen(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
The length, in characters, of the command buffer.
dbstrlen returns the length, in characters, of the SQL command text in the command buffer.
Internally, the command buffer is a linked list of non-null-terminated text strings. dbgetchar, dbstrcpy, and dbstrlen together provide a way to locate and copy parts of the command buffer.
Before you copy the command buffer with dbstrcpy, use dbstrlen to make sure that the destination buffer is large enough.
The count returned by dbstrlen does not include space for a null terminator.