ProSoft Technology MVI69-ADM User Manual

Page 180

Advertising
background image

Application Development Function Library - ADM API

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 180 of 342

ProSoft Technology, Inc.

February 20, 2013

ADM_GetVal

Syntax

int ADM_GetVal(ADMHANDLE adm_handle, char *buff);

Parameters

adm_handle

Handle returned by previous call to ADM_Open

buff

pointer to character buffer

Description
ADM_GetVal converts the first character in buff from ASCII to an integer.

adm_handle must be a valid handle returned from ADM_Open.

buff must be a pointer to a character buffer.

Return Value
Integer data.

Example:

ADMHANDLE adm_handle;
char *buffer;
int data_val;
data_val = ADM_GetVal(adm_handle, buffer);

See Also
ADM_GetChar (page 181)

ADM_GetStr (page 182)

ADM_Getc (page 184)

Advertising