PAPI Library Functions papiStatusString(3PAPI)
NAME
papiStatusString - return the string equivalent of a
papi_status_t
SYNOPSIS
cc [ flag... ] file... -lpapi [ library... ]
#include
char *papiStatusString(papi_status_t status);
PARAMETERS
status a papi_status_t returned from most papi*() func-
tionsDESCRIPTION
The papiStatusString() function takes a status value and
returns a localized human-readable version of the supplied
status.RETURN VALUES
The papiStatusString() function always returns a text
string.ERRORS
None.EXAMPLES
Example 1 Print status.#include
#include
/*ARGSUSED*/ int main(int ac, char *av[]) {printf("status: %s\n", papiStatusString(PAPI_OK));
printf("status: %s\n", papiStatusString(PAPI_DEVICE_ERROR));
printf("status: %s\n", papiStatusString(PAPI_DOCUMENT_ACCESS_ERROR));
exit(0); }ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 17 Jan 2007 1
PAPI Library Functions papiStatusString(3PAPI)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Volatile ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
libpapi(3LIB), attributes(5)SunOS 5.11 Last change: 17 Jan 2007 2