Prosoft-technology MVI69-ADM Manual de usuario Pagina 327

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 326
MVI-ADM 'C' Programmable Side-Connect API Library Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 327 of 342
February 20, 2013
MVIsc_ErrorStr
Syntax
int MVIsc_ErrorStr(int errcode, char *buf);
Parameters
errcode
Error code returned from an API function
buf
Pointer to user buffer to receive message
Description
MVIsc_ErrorStr returns the text error message associated with the error code
errcode. The null-terminated error message is copied into the buffer specified by
buf. The buffer should be at least 80 characters in length.
Return Value
MVISC_SUCCESS
Message returned in buf
MVISC_ERR_BADPARAM
Unknown error code
Example
char buf[80];
int rc;
/* print error message */
MVIsc_ErrorStr(rc, buf);
printf("Error: %s", buf);
Vista de pagina 326
1 2 ... 322 323 324 325 326 327 328 329 330 331 332 ... 341 342

Comentarios a estos manuales

Sin comentarios