CE Add copy command
This commit is contained in:
@@ -22,3 +22,8 @@ void strbuf_append_str (struct strbuf* strbuf, const char* s) {
|
||||
while (*s)
|
||||
strbuf_append (strbuf, *s++);
|
||||
}
|
||||
|
||||
void strbuf_append_n (struct strbuf* strbuf, const char* s, size_t n) {
|
||||
for (size_t i = 0; i < n; i++)
|
||||
strbuf_append (strbuf, s[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user