aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/lib/builder/u8strfit.c
blob: c59b4b0b3f12c39139176ffad3ec8a0725781294 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;
}