MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / rm_strdup

Function rm_strdup

src/util/rmalloc.h:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 RedisModule_Free(p);
32}
33static inline char *rm_strdup(const char *s) {
34 return RedisModule_Strdup(s);
35}
36
37static inline char *rm_strndup(const char *s, size_t n) {
38 char *ret = (char *)rm_malloc(n + 1);

Callers 15

SI_DuplicateStringValFunction · 0.85
QueriesLog_AddQueryFunction · 0.85
CommandCtx_NewFunction · 0.85
_SlowLogItem_NewFunction · 0.85
IndexField_NewFunction · 0.85
Index_NewFunction · 0.85
Index_CloneFunction · 0.85
Index_SetLanguageFunction · 0.85
Schema_NewFunction · 0.85
GraphContext_NewFunction · 0.85
GraphContext_RenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected