MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / memset

Function memset

lab8/src/1/src/utils/stdlib.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void memset(void *memory, char value, int length)
45{
46 for (int i = 0; i < length; ++i)
47 {
48 ((char *)memory)[i] = value;
49 }
50}
51
52int ceil(const int dividend, const int divisor) {
53 return (dividend + divisor - 1) / divisor;

Callers 4

executeThreadMethod · 0.50
initializeMethod · 0.50
openPageMechanismMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected