diff options
| author | Scott Gasch <[email protected]> | 2016-06-01 19:37:09 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2016-06-01 19:37:09 -0700 |
| commit | 0a41dae5f406d498b5c9ab1542cb5660e0d982f6 (patch) | |
| tree | 67ade9fe31cfd0458cc485e95550f7aaf14abdd1 /kernel/rtl/memory.c | |
Diffstat (limited to 'kernel/rtl/memory.c')
| -rw-r--r-- | kernel/rtl/memory.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/kernel/rtl/memory.c b/kernel/rtl/memory.c new file mode 100644 index 0000000..f4f845e --- /dev/null +++ b/kernel/rtl/memory.c @@ -0,0 +1,29 @@ +//+---------------------------------------------------------------------------- +// +// File: memory.c +// +// Module: +// +// Synopsis: +// +// Copyright (C) Scott Gasch +// +// Created: sgasch 5 Jul 2003 +// +//+---------------------------------------------------------------------------- + +#include "kernel.h" + +void +RtlSetMemory(void *pStart, + BYTE bFill, + ULONG uLength) +{ + BYTE *p = (BYTE *)pStart; + + while(uLength > 0) + { + *p++ = bFill; + uLength--; + } +} |
