MCPcopy Create free account
hub / github.com/coreboot/coreboot / memset

Function memset

src/lib/memset.c:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <string.h>
4
5void *memset(void *s, int c, size_t n)
6{
7 int i;
8 char *ss = (char *) s;
9
10 for (i = 0; i < (int)n; i++)
11 ss[i] = c;
12
13 return s;
14}

Callers 15

fb_new_framebuffer_infoFunction · 0.70
rmodule_clear_bssFunction · 0.70
truncate_bitmap_bufferFunction · 0.70
cbfs_prog_stage_loadFunction · 0.70
nhlt_initFunction · 0.70
gcov_exitFunction · 0.70
__gcov_flushFunction · 0.70
imdr_create_emptyFunction · 0.70
imd_cursor_initFunction · 0.70

Calls

no outgoing calls

Tested by 15

setup_acpigenFunction · 0.40
test_strncpyFunction · 0.40
test_strcpyFunction · 0.40
clear_cbmemFunction · 0.40
clear_region_fileFunction · 0.40
setup_testFunction · 0.40
setup_testFunction · 0.40
test_mktimeFunction · 0.40
test_leap_day_secdayFunction · 0.40
test_memset_full_rangeFunction · 0.40