MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / malloc_and_copy_string

Function malloc_and_copy_string

src/Chain/libraries/glua/thinkyoung_lua_lib.cpp:2254–2257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2252 }
2253
2254 char *malloc_and_copy_string(lua_State *L, const char *init_data)
2255 {
2256 return malloc_managed_string(L, sizeof(char) * (strlen(init_data) + 1), init_data);
2257 }
2258
2259 GluaModuleByteStream *malloc_managed_byte_stream(lua_State *L)
2260 {

Callers 3

set_lua_state_valueFunction · 0.85
get_contract_id_in_apiFunction · 0.85

Calls 1

malloc_managed_stringFunction · 0.85

Tested by

no test coverage detected