ProSoft Technology MVI69-ADM User Manual

Page 149

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Application Development Function Library - ADM API

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 149 of 342

February 20, 2013

ADM_DBSetBuff

Syntax

int ADM_DBSetBuff(ADMHANDLE adm_handle, unsigned short offset, const unsigned
short count, char * str)

Parameters

adm_handle

Handle returned by previous call to ADM_Open

offset

Character offset into database where the buffer starts

count

Number of characters to write

str

String buffer to copy characters from

Description
This function copies a buffer of characters to the database.

adm_handle must be a valid handle returned from ADM_Open.

Return Value

NULL

adm_handle has no access, the database is not allocated, or count
+ offset is beyond the max size of the database

Characters from buffer

Example

ADMHANDLE adm_handle;
unsigned short offset;
const unsigned short char_count;
char *string_buff = "MVI ADM";
char_count = strlen(string_buff);
ADM_DBSetBuff(adm_handle, offset, char_count, string_buff);

See Also
ADM_DBGetBuff (page 148)

Advertising