ProSoft Technology MVI69-ADM User Manual

Page 182

Advertising
background image

Application Development Function Library - ADM API

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 182 of 342

ProSoft Technology, Inc.

February 20, 2013

ADM_GetStr

Syntax

int ADM_GetStr(ADMHANDLE adm_handle, char *buff, char *fbuff);

Parameters

adm_handle

Handle returned by previous call to ADM_Open

buff

pointer to source string buffer

fbuff

pointer to destination string buffer

Description
ADM_GetStr copies characters from the source buffer to the destination buffer.
White space at the start of the string is discarded. The function will copy up to 9
characters until a space is encountered.

adm_handle must be a valid handle returned from ADM_Open.

buff must be a pointer to a string buffer.

Fbuff must be a pointer to a string buffer.

Return Value

ADM_SUCCESS

The string has been successfully copied.

ADM_ERR_NOACCESS

adm_handle does not have access

Example

ADMHANDLE adm_handle;
char *src_buffer;
char *dest_buffer;
ADM_GetStr(adm_handle, src_buffer, dest_buffer);

See Also
ADM_GetVal (page 180)

ADM_GetChar (page 181)

ADM_Getc (page 184)

Advertising