dbgetchar

Description

Return a pointer to a character in the command buffer.

Syntax

char *dbgetchar(dbproc, n)
 
DBPROCESS    *dbproc;
int                        n;

Parameters

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.

n

The position of the desired character in the command buffer. The first character position is 0.

Returns

dbgetchar returns a pointer to the nth character in the command buffer. If n is not in range, dbgetchar returns NULL.

Usage

See also

dbcmd, dbfcmd, dbfreebuf, dbstrcpy, dbstrlen