* Determine the amount of allocated but unused memory. */
| 141 | * Determine the amount of allocated but unused memory. |
| 142 | */ |
| 143 | static inline size_t strbuf_avail(const struct strbuf *sb) |
| 144 | { |
| 145 | return sb->alloc ? sb->alloc - sb->len - 1 : 0; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Ensure that at least this amount of unused memory is available after |
no outgoing calls
no test coverage detected