Get ISO-8601 timestamp. */
| 216 | |
| 217 | /* Get ISO-8601 timestamp. */ |
| 218 | static void iso_now(char *buf, size_t sz) { |
| 219 | time_t t = time(NULL); |
| 220 | struct tm tm; |
| 221 | cbm_gmtime_r(&t, &tm); |
| 222 | (void)strftime(buf, sz, "%Y-%m-%dT%H:%M:%SZ", |
| 223 | &tm); // cert-err33-c: strftime only fails if buffer is too small — 21-byte ISO |
| 224 | // timestamp always fits in caller-provided buffers |
| 225 | } |
| 226 | |
| 227 | /* ── Schema ─────────────────────────────────────────────────────── */ |
| 228 |
no test coverage detected