Prosoft-technology MVI69-ADM Bedienungsanleitung Seite 296

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 342
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 295
CIP Messaging Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 296 of 342 ProSoft Technology, Inc.
February 20, 2013
MVIcip_ErrorString
Syntax
int MVIcip_ErrorString(int errcode, char *buf);
Parameters
errcode
error code returned from an API function
buf
pointer to user buffer to receive message
Description
MVIcip_ErrorString returns a 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
MVI_SUCCESS
message returned in buf
MVI_ERR_BADPARAM
unknown error code
Example
char buf[80];
int rc;
/* print error message */
MVIcip_ErrorString(rc, buf);
printf("Error: %s", buf);
Seitenansicht 295
1 2 ... 291 292 293 294 295 296 297 298 299 300 301 ... 341 342

Kommentare zu diesen Handbüchern

Keine Kommentare