MCPcopy Create free account
hub / github.com/apache/cloudberry / pgtypes_alloc

Function pgtypes_alloc

src/interfaces/ecpg/pgtypeslib/common.c:9–17  ·  view source on GitHub ↗

Return value is zero-filled. */

Source from the content-addressed store, hash-verified

7
8/* Return value is zero-filled. */
9char *
10pgtypes_alloc(long size)
11{
12 char *new = (char *) calloc(1L, size);
13
14 if (!new)
15 errno = ENOMEM;
16 return new;
17}
18
19char *
20pgtypes_strdup(const char *str)

Callers 11

pgtypes_fmt_replaceFunction · 0.85
PGTYPESdate_newFunction · 0.85
PGTYPESdate_fmt_ascFunction · 0.85
PGTYPESdate_defmt_ascFunction · 0.85
PGTYPESnumeric_newFunction · 0.85
PGTYPESdecimal_newFunction · 0.85
get_str_from_varFunction · 0.85
PGTYPESnumeric_from_ascFunction · 0.85
PGTYPESinterval_newFunction · 0.85
PGTYPESinterval_from_ascFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected