diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 13:02:28 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 13:11:47 +0100 |
commit | 79e6af86ca526d5fb56af6f6ca3da713e3a5e9f9 (patch) | |
tree | 752f1c26d1f122dcf58374ac78db109c9578be45 /vendor/librune/lib/builder/u8strfit.c |
Genesis commit
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..d0f0ecb --- /dev/null +++ b/vendor/librune/lib/builder/u8strfit.c @@ -0,0 +1,11 @@ +#include <stdlib.h> + +#include "builder.h" + +#include "internal/common.h" + +struct u8str * +u8strfit(struct u8str *b) +{ + return (b->p = realloc(b->p, b->len)) ? b : nullptr; +} |