Prosoft-technology MVI69-ADM Manual de usuario Pagina 195

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 194
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;
}
Vista de pagina 194
1 2 ... 190 191 192 193 194 195 196 197 198 199 200 ... 341 342

Comentarios a estos manuales

Sin comentarios