MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


PAPI Library Functions                    papiStatusString(3PAPI)



NAME
     papiStatusString  -  return  the  string  equivalent  of   a
     papistatust

SYNOPSIS
     cc [ flag... ] file... -lpapi [ library... ]
     #include 

     char *papiStatusString(papistatust status);


PARAMETERS
     status    a papistatust returned from most  papi*()  func-
               tions


DESCRIPTION
     The papiStatusString() function takes  a  status  value  and
     returns  a  localized human-readable version of the supplied
     status.

RETURN VALUES
     The  papiStatusString()  function  always  returns  a   text
     string.

ERORS
     None.

EXAMPLES
     Example 1 Print status.

       #include 
       #include 

       /*ARGSUSED*/
       int
       main(int ac, char *av[])
       {

           printf("status: %s\n", papiStatusString(PAPIOK));
           printf("status: %s\n", papiStatusString(PAPIDEVICEROR));
           printf("status: %s\n", papiStatusString(PAPIDOCUMENTACESEROR));

           exit(0);
       }


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:





SunOS 5.11          Last change: 17 Jan 2007                    1






PAPI Library Functions                    papiStatusString(3PAPI)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Volatile                    
    
     MT-Level                     Safe                        
    


SEE ALSO
     libpapi(3LIB), attributes(5)












































SunOS 5.11          Last change: 17 Jan 2007                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™