PAPI_perror man page on RedHat

Printed from http://www.polarhome.com/service/man/?qf=PAPI_perror&af=0&tf=2&of=RedHat

PAPI_perror(3)			     PAPI			PAPI_perror(3)

NAME
       PAPI_perror -

       Produces a string on standard error, describing the last library error.

SYNOPSIS
Detailed Description
       C Interface:
	   #include <papi.h>
	    void PAPI_perror( char *s );

       Parameters:
	   s -- Optional message to print before the string describing the
	   last error message.

       The routine PAPI_perror() produces a message on the standard error
       output, describing the last error encountered during a call to PAPI. If
       s is not NULL, s is printed, followed by a colon and a space. Then the
       error message and a new-line are printed.

       Example:

	   *  int ret;
	   *  int EventSet = PAPI_NULL;
	   *  int native = 0x0;
	   *
	   *  ret = PAPI_create_eventset(&EventSet);
	   *  if (ret != PAPI_OK)
	   *  {
	   *	 fprintf(stderr,
	   *	 exit(1);
	   *  }
	   *  // Add Total Instructions Executed to our EventSet
	   *  ret = PAPI_add_event(EventSet, PAPI_TOT_INS);
	   *  if (ret != PAPI_OK)
	   *  {
	   *	 PAPI_perror( "PAPI_add_event" );
	   *	 exit(1);
	   *  }
	   *  // Start counting
	   *  ret = PAPI_start(EventSet);
	   *  if (ret != PAPI_OK) handle_error(ret);
	   *

       See Also:
	   PAPI_strerror

Author
       Generated automatically by Doxygen for PAPI from the source code.

Version 5.2.0.0			Mon Oct 28 2013			PAPI_perror(3)
[top]

List of man pages available for RedHat

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net