SAPPerror(3sapd)


SAPPerror -- print error message

Synopsis

#include <sap_app.h> 

int SAPPerror(int saperr, char *text);

Description

SAPPerror prints an error message for errors returned from the SAP library.

Parameters

(IN) saperr
SAP error number.

(IN) text
Pointer to the address of the text to be prepended to the error message.

Usage

The saperr argument returns the error code as it is returned from one of the SAP functions. The text argument specifies the address of the text to be prepended to the error message returned by SAPPerror.

Return values

If an error occurs, the function returns a -1.

>0
successful

-1
an error has occurred

30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.