ProSoft Technology MVI69-ADM User Manual

Page 194

Advertising
background image

Application Development Function Library - ADM API

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 194 of 342

ProSoft Technology, Inc.

February 20, 2013

ADM_RAM_Find_Section

Syntax

char huge * ADM_RAM_Find_Section(ADMHANDLE adm_handle, char * SubSec);

Parameters

adm_handle

Handle returned by previous call to ADM_Open

SubSec

String of Sub-section that you'd like to find in the configuration file.

Description
ADM_RAM_Find_Section tries to find the section passed to the function.

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

Example

if((tptr = ADM_RAM_Find_Section(adm_handle, "[Module]")) != NULL)
{
cptr = (char*)ADM_RAM_GetString(tptr, "Module Name");
if(cptr == NULL)
strcpy(module.name, "No Module Name");
else
{
strcpy(module.name, cptr);
}
}

Advertising