MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / msnew

Function msnew

extern/btyacc/mstring.c:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52struct mstring *msnew(void) {
53 struct mstring *n = malloc(sizeof(struct mstring));
54
55 if (n && (n->base = n->ptr = malloc(START_STR)))
56 n->end = n->base + START_STR;
57 else if (n) {
58 free(n);
59 n = 0; }
60 return n;
61}
62
63char *msdone(struct mstring *s)
64{

Callers 2

copy_argsFunction · 0.85
compile_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected