2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH PAPISTATUSSTRING 3PAPI "Jan 17, 2007"
8 papiStatusString \- return the string equivalent of a papi_status_t
12 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpapi\fR [ \fIlibrary\fR\&.\|.\|. ]
15 \fBchar *\fR\fBpapiStatusString\fR(\fBpapi_status_t\fR \fIstatus\fR);
25 a \fBpapi_status_t\fR returned from most \fBpapi*()\fR functions
31 The \fBpapiStatusString()\fR function takes a \fIstatus\fR value and returns a
32 localized human-readable version of the supplied status.
36 The \fBpapiStatusString()\fR function always returns a text string.
43 \fBExample 1 \fRPrint status.
52 main(int ac, char *av[])
55 printf("status: %s\en", papiStatusString(PAPI_OK));
56 printf("status: %s\en", papiStatusString(PAPI_DEVICE_ERROR));
57 printf("status: %s\en", papiStatusString(PAPI_DOCUMENT_ACCESS_ERROR));
67 See \fBattributes\fR(5) for descriptions of the following attributes:
75 ATTRIBUTE TYPE ATTRIBUTE VALUE
77 Interface Stability Volatile
85 \fBlibpapi\fR(3LIB), \fBattributes\fR(5)