diff options
Diffstat (limited to 'vendor/librune/lib/builder/u8strfit.c')
-rw-r--r-- | vendor/librune/lib/builder/u8strfit.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/librune/lib/builder/u8strfit.c b/vendor/librune/lib/builder/u8strfit.c new file mode 100644 index 0000000..c59b4b0 --- /dev/null +++ b/vendor/librune/lib/builder/u8strfit.c @@ -0,0 +1,11 @@ +#include <stdlib.h> + +#include "builder.h" + +#include "internal/common.h" + +struct u8buf * +u8strfit(struct u8buf *b) +{ + return (b->p = realloc(b->p, b->len)) ? b : nullptr; +} |