Query: papistatusstring
OS: opensolaris
Section: 3papi
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
papiStatusString(3PAPI) PAPI Library Functions papiStatusString(3PAPI)NAMEpapiStatusString - return the string equivalent of a papi_status_tSYNOPSIScc [ flag... ] file... -lpapi [ library... ] #include <papi.h> char *papiStatusString(papi_status_t status);PARAMETERSstatus a papi_status_t returned from most papi*() functionsDESCRIPTIONThe papiStatusString() function takes a status value and returns a localized human-readable version of the supplied status.RETURN VALUESThe papiStatusString() function always returns a text string.ERRORSNone.EXAMPLESExample 1 Print status. #include <stdio.h> #include <papi.h> /*ARGSUSED*/ int main(int ac, char *av[]) { printf("status: %s ", papiStatusString(PAPI_OK)); printf("status: %s ", papiStatusString(PAPI_DEVICE_ERROR)); printf("status: %s ", papiStatusString(PAPI_DOCUMENT_ACCESS_ERROR)); exit(0); }ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+SEE ALSOlibpapi(3LIB), attributes(5) SunOS 5.11 17 Jan 2007 papiStatusString(3PAPI)
Similar Topics in the Unix Linux Community |
---|
diff in putchar(c) and printf("%c",c); |