ProSoft Technology MVI69-ADM User Manual

Page 327

Advertising
background image

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);

Advertising