out[*w..] += s[0, n); false when it does not fit. */
| 84 | |
| 85 | /* out[*w..] += s[0, n); false when it does not fit. */ |
| 86 | static bool php_put(char *out, size_t cap, size_t *w, const char *s, size_t n) { |
| 87 | if (*w + n + SKIP_ONE > cap) { |
| 88 | return false; |
| 89 | } |
| 90 | memcpy(out + *w, s, n); |
| 91 | *w += n; |
| 92 | out[*w] = '\0'; |
| 93 | return true; |
| 94 | } |
| 95 | |
| 96 | size_t cbm_doclink_php_qualify(char *out, size_t cap, const char *ns, size_t ns_len, |
| 97 | const cbm_doclink_php_use_t *uses, int nuses, const char *ref, |
no outgoing calls
no test coverage detected