| 124 | b->buf[0] = '\0'; |
| 125 | } |
| 126 | static void ub_app(UdlBuf *b, const char *s) { |
| 127 | if (!b->buf || !s) |
| 128 | return; |
| 129 | size_t n = strlen(s); |
| 130 | if (b->pos + (int)n + 1 >= b->cap) |
| 131 | return; |
| 132 | memcpy(b->buf + b->pos, s, n); |
| 133 | b->pos += (int)n; |
| 134 | b->buf[b->pos] = '\0'; |
| 135 | } |
| 136 | |
| 137 | static void emit_header(UdlBuf *b, const char *cs, const char *ce) { |
| 138 | char name[MAX_NAME]; |
no outgoing calls
no test coverage detected