MCPcopy Create free account
hub / github.com/MariaDB/server / calloc

Method calloc

sql/sql_class.h:1362–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1360
1361 template <typename T=char>
1362 inline T* calloc(size_t size) const
1363 {
1364 void* ptr= alloc_root(mem_root, sizeof(T)*size);
1365 if (ptr)
1366 bzero(ptr, sizeof(T)*size);
1367 return (T*)ptr;
1368 }
1369 inline char *strdup(const char *str) const
1370 { return strdup_root(mem_root,str); }
1371 inline char *strmake(const char *str, size_t size) const

Callers 13

check_list_constantsFunction · 0.80
setup_oracle_joinFunction · 0.80
thd_callocFunction · 0.80
init_nested_joinMethod · 0.80
nest_last_joinMethod · 0.80
alloc_func_listMethod · 0.80
Item_spMethod · 0.80
convert_subq_to_jtbmFunction · 0.80
alloc_join_nestFunction · 0.80

Calls 1

alloc_rootFunction · 0.85

Tested by

no test coverage detected