Prosoft-technology MVI69-ADM Uživatelský manuál Strana 194

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 342
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 193
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);
}
}
Zobrazit stránku 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 341 342

Komentáře k této Příručce

Žádné komentáře