blob: bf8a107261e04bdc43578f5ed76fb0c2c362804d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <stdbool.h>
#include <stdlib.h>
#include "mbtstr/str.h"
struct mbt_str *mbt_str_init(size_t capacity)
{
struct mbt_str *s = calloc(sizeof(struct mbt_str), 1);
if (!mbt_str_ctor(s, capacity))
return NULL;
return s;
}
|