aboutsummaryrefslogtreecommitdiff
path: root/lib/bob/u8strfit.c
blob: 332a5d7b81c2859224d7baff397cf6a84e9cc241 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <stdlib.h>

#include "bob.h"

struct u8str *
u8strfit(struct u8str *b)
{
	return (b->p = realloc(b->p, b->len)) ? b : nullptr;
}