Add timestamp snprintf. Fix bacapp snprintf to account for string size zero behavior of snprintf.

This commit is contained in:
Steve Karg
2024-04-23 10:04:46 -05:00
parent 8729c00dbd
commit e73520a974
7 changed files with 299 additions and 142 deletions
+5
View File
@@ -113,6 +113,11 @@ extern "C" {
bool bacapp_timestamp_init_ascii(
BACNET_TIMESTAMP *timestamp,
const char *ascii);
BACNET_STACK_EXPORT
int bacapp_timestamp_to_ascii(
char *str,
size_t str_size,
BACNET_TIMESTAMP *timestamp);
#ifdef __cplusplus
}