ProSoft Technology MVI69-ADM User Manual

Page 195

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 195 of 342

February 20, 2013

ADM_RAM_GetString

Syntax

char huge ADM_RAM_GetString (ADMHANDLE adm_handle, char huge * mydata, char *
Topic);

Parameters

adm_handle

Handle returned by previous call to ADM_Open

mydata

Pointer return from ADM_RAM_Find_Section.

Topic

Pointer to name of a variable.

Description
ADM_RAM_GetString tries to find the Topic name passed to the function in the
file.

Return Value
Pointer to the string found in the file or NULL if the sub-section is not found.

Example

cptr = (char*)ADM_RAM_GetString(adm_handle, tptr, "Module Name");
if(cptr == NULL)
strcpy(module.name, "No Module Name");
else
{
if(strlen(cptr) > 80)
*(cptr+80) = 0;
strcpy(module.name, cptr);
if(module.name[strlen(module.name)-1] < 32)
module.name[strlen(module.name)-1] = 0;
}

Advertising