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

Function strmake_root

mysys/my_alloc.c:431–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430
431char *strmake_root(MEM_ROOT *root, const char *str, size_t len)
432{
433 char *pos;
434 if ((pos=alloc_root(root,len+1)))
435 {
436 memcpy(pos,str,len);
437 pos[len]=0;
438 }
439 return pos;
440}
441
442
443void *memdup_root(MEM_ROOT *root, const void *str, size_t len)

Callers 9

unpack_fieldsFunction · 0.85
init_sp_nameMethod · 0.85
strmakeMethod · 0.85
parse_stringFunction · 0.85
make_lex_string_rootFunction · 0.85
create_typelibFunction · 0.85
copy_typelibFunction · 0.85
strdup_rootFunction · 0.85
add_directoryFunction · 0.85

Calls 1

alloc_rootFunction · 0.85

Tested by

no test coverage detected