Retrieves the message that is associated with a subroutine return code.
Availability Library (liblapi_r.a)
#include <lapi.h>
LAPI_Msg_string(error_code, buf)
int error_code;
void *buf;
include 'lapif.h'
LAPI_MSG_STRING(error_code, buf, ierror)
INTEGER error_code
CHARACTER buf(LAPI_MAX_ERR_STRING)
INTEGER ierror
Type of call: local queries
Use this subroutine to retrieve the message string that is associated with a LAPI return code. LAPI tries to find the messages of any return codes that come from the AIX® operating system or its communication subsystem.
{
char msg_buf[LAPI_MAX_ERR_STRING]; /* constant defined in lapi.h */
int rc, errc;
rc = some_LAPI_call();
errc = LAPI_Msg_string(rc, msg_buf);
/* msg_buf now contains the message string for the return code */
}