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