dbreadtext

Description

Read part of a text or image value from the server.

Syntax

STATUS dbreadtext(dbproc, buf, bufsize)
 
DBPROCESS    *dbproc;
void                   *buf;
DBINT                 bufsize;

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.

buf

A pointer to a caller-allocated buffer that will contain the chunk of text or image data.

bufsize

The size of the caller’s buffer, in bytes.

Returns

The following table lists the return values for dbreadtext:

dbreadtext returns

To indicate

>0

The number of bytes placed into the caller’s buffer

0

The end of a row

-1

An error occurred, such as a network or out of memory error

NO_MORE_ROWS

All rows read

Usage

See also

dbmoretext, dbnextrow, dbwritetext