MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / init_str

Function init_str

str.h:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78static inline str_const *_s2c(str *_sp) {return (str_const *)(void *)(_sp);}
79
80static inline void init_str(str *dest, const char *src)
81{
82 dest->s = (char *)src;
83 dest->len = strlen(src);
84}
85
86/* zero-str tests */
87#define ZSTR(_s) (!(_s).s || (_s).len == 0)

Callers 15

do_actionFunction · 0.85
add_stat_moduleFunction · 0.85
register_stat2Function · 0.85
register_stats_groupFunction · 0.85
get_route_typeFunction · 0.85
get_route_nameFunction · 0.85
init_log_cee_hostnameFunction · 0.85
event_dprintFunction · 0.85
register_log_consumerFunction · 0.85
mongo_doc_to_dictFunction · 0.85
mongo_cdb_filter_to_bsonFunction · 0.85
mongo_print_cdb_keyFunction · 0.85

Calls

no outgoing calls

Tested by 8

test_query_filtersFunction · 0.68
test_updateFunction · 0.68
test_update_unsetFunction · 0.68
test_query_unsetFunction · 0.68
test_map_setFunction · 0.68
test_map_getFunction · 0.68
test_map_opsFunction · 0.68
test_cachedb_apiFunction · 0.68