| 1590 | } |
| 1591 | |
| 1592 | static void generate_iso_timestamp(char *buf, size_t buf_size) { |
| 1593 | time_t now = time(NULL); |
| 1594 | struct tm tm_buf; |
| 1595 | struct tm *tm_val = cbm_gmtime_r(&now, &tm_buf); |
| 1596 | if (strftime(buf, buf_size, "%Y-%m-%dT%H:%M:%SZ", tm_val) == 0) { |
| 1597 | snprintf(buf, buf_size, "1970-01-01T00:00:00Z"); |
| 1598 | } |
| 1599 | } |
| 1600 | |
| 1601 | /* Release lookup indexes then remap+sort+dedup vectors for the B-tree writer. */ |
| 1602 | static void release_and_remap_vectors(cbm_gbuf_t *gb, const int64_t *temp_to_final, |
no test coverage detected