papiStatusString - return the string equivalent of a papi_status_t
cc [ flag... ] file... -lpapi [ library... ] #include <papi.h> char *papiStatusString(papi_status_t status);
status
The papiStatusString() function takes a status value and returns a localized human-readable version of the supplied status.
The papiStatusString() function always returns a text string.
Example 1 Print status.
#include <stdio.h> #include <papi.h> /*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); }
See attributes(5) for descriptions of the following attributes:
|
libpapi(3LIB), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |