Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 36 of file papi_error_codes.c.
37{
40
41 (void)argc;
42 (void)argv;
43
46 fprintf(
stderr,
"Error with PAPI_library_init!\n");
48 }
49
50 printf( "\n----------------------------------\n" );
51 printf( "For PAPI Version: %d.%d.%d.%d\n",
56 printf( "----------------------------------\n" );
57 while ( 1 ) {
58 char *errstr;
60
61 if ( NULL == errstr ) {
62 break;
63 }
64
65 printf(
"Error code %4d: %s\n", -
i, errstr );
67 }
68 printf(
"There are %d error codes defined\n",
i );
69 printf( "----------------------------------\n\n" );
70
71 return 0;
72}
initialize the PAPI library.
Returns a string describing the PAPI error code.
#define PAPI_VERSION_REVISION(x)
#define PAPI_VERSION_MAJOR(x)
#define PAPI_VERSION_INCREMENT(x)
#define PAPI_VERSION_MINOR(x)