MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / _memset

Function _memset

include/init/string.h:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130void _memset(void *m, size_t n);
131void _memset(void *m, size_t n)
132{
133 if(!m || !n) return;
134 u8 p = n & 7; // remaining bytes (same as n % 8)
135
136 n >>= 3; // same as n /= 8;
137 u64 *s = (u64 *) m;
138 while (n--) *s++ = 0LL; // 64bit memset
139
140 if(p)
141 memset(s, 0, p);
142}
143/*
144static char *replace(char *text, const char *rep, const char *with, int count)
145{

Callers 15

connect_to_server_exFunction · 0.70
slistenFunction · 0.70
wwwd_threadFunction · 0.50
build_blank_isoFunction · 0.50
cobra_disc_authFunction · 0.50
init_tracksFunction · 0.50
cobra_read_configFunction · 0.50
get_net_infoFunction · 0.50
get_sys_infoFunction · 0.50
setup_parse_settingsFunction · 0.50
read_settingsFunction · 0.50
handleclient_ftpFunction · 0.50

Calls 1

memsetFunction · 0.50

Tested by

no test coverage detected