diff options
Diffstat (limited to 'src/base/system.h')
| -rw-r--r-- | src/base/system.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/base/system.h b/src/base/system.h index 39e7c994..2aca4de1 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -914,6 +914,19 @@ const char *str_find(const char *haystack, const char *needle); */ void str_hex(char *dst, int dst_size, const void *data, int data_size); +/* + Function: str_timestamp + Copies a time stamp in the format year-month-day_hour-minute-second to the string. + + Parameters: + buffer - Pointer to a buffer that shall receive the time stamp string. + buffer_size - Size of the buffer. + + Remarks: + - Guarantees that buffer string will contain zero-termination. +*/ +void str_timestamp(char *buffer, int buffer_size); + /* Group: Filesystem */ /* |