* Add a NUL-terminated string to the buffer. * * NOTE: This function will *always* be implemented as an inline or a macro * using strlen, meaning that this is efficient to write things like: * * strbuf_addstr(sb, "immediate string"); * */
| 306 | * |
| 307 | */ |
| 308 | static inline void strbuf_addstr(struct strbuf *sb, const char *s) |
| 309 | { |
| 310 | strbuf_add(sb, s, strlen(s)); |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Add a NUL-terminated string the specified number of times to the buffer. |