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