Prosoft-technology MVI69-ADM Instrukcja Użytkownika Strona 194

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 342
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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);
}
}
Przeglądanie stron 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 341 342

Komentarze do niniejszej Instrukcji

Brak uwag