| 184 | |
| 185 | |
| 186 | static char const * timestamp_formatstr( timestamp const * const time, |
| 187 | char const * const format ) |
| 188 | { |
| 189 | static char result1[ 500 ]; |
| 190 | static char result2[ 500 ]; |
| 191 | strftime( result1, sizeof( result1 ) / sizeof( *result1 ), format, gmtime( |
| 192 | &time->secs ) ); |
| 193 | sprintf( result2, result1, time->nsecs ); |
| 194 | return result2; |
| 195 | } |
| 196 | |
| 197 | |
| 198 | char const * timestamp_str( timestamp const * const time ) |
no outgoing calls
no test coverage detected