MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / calloc

Method calloc

sql/sql_class.h:690–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688
689 inline void* alloc(size_t size) { return alloc_root(mem_root,size); }
690 inline void* calloc(size_t size)
691 {
692 void *ptr;
693 if ((ptr=alloc_root(mem_root,size)))
694 memset(ptr, 0, size);
695 return ptr;
696 }
697 inline char *strdup(const char *str)
698 { return strdup_root(mem_root,str); }
699 inline char *strmake(const char *str, size_t size)

Callers 5

alloc_comparatorsMethod · 0.80
merge_table_listMethod · 0.80
thd_callocFunction · 0.80
add_table_to_listMethod · 0.80

Calls 1

alloc_rootFunction · 0.85

Tested by

no test coverage detected