added some stuff
This commit is contained in:
parent
449e9d726f
commit
d8b44c1281
5 changed files with 91 additions and 8 deletions
|
|
@ -324,6 +324,8 @@ str_ostream_t ostrInitStr(const char *cstr, size_t len) {
|
|||
str_ostream_t stream;
|
||||
stream.buf = malloc(len + 1);
|
||||
memcpy(stream.buf, cstr, len);
|
||||
stream.size = len;
|
||||
stream.allocated = len + 1;
|
||||
return stream;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue