Home | History | Annotate | Download | only in libutil
      1 /**
      2  * @file op_get_time.h
      3  * Get current time as a string
      4  *
      5  * @remark Copyright 2002 OProfile authors
      6  * @remark Read the file COPYING
      7  *
      8  * @author John Levon
      9  * @author Philippe Elie
     10  */
     11 
     12 #ifndef OP_GET_TIME_H
     13 #define OP_GET_TIME_H
     14 
     15 #ifdef __cplusplus
     16 extern "C" {
     17 #endif
     18 
     19 /**
     20  * op_get_time - get current date and time
     21  *
     22  * Returns a string representing the current date
     23  * and time, or an empty string on error.
     24  *
     25  * The string is statically allocated and should not be freed.
     26  */
     27 char * op_get_time(void);
     28 
     29 #ifdef __cplusplus
     30 }
     31 #endif
     32 
     33 #endif /* OP_GET_TIME_H */
     34