int gptlevent_code_to_name (int *code, char *str, int nc) { int i; if (nc < PAPI_MAX_STR_LEN) return GPTLerror ("gptl_event_code_to_name: output name must hold at least %d characters\n", PAPI_MAX_STR_LEN); if (GPTLevent_code_to_name (*code, str) == 0) { for (i = strlen(str); i < nc; ++i) str[i] = ' '; } else { return GPTLerror (""); } return 0; }
int gptlevent_code_to_name (const int *code, char *str, int nc) { return GPTLevent_code_to_name (*code, str); }