memset

public func memset(consuming RawPointer, consuming Int64, consuming Int64) -> RawPointer

Wraps memset(3) — fills n bytes starting at dest with the low byte of c.

c is widened to i64 to match the libc signature, but only the low 8 bits are used; pass 0 to zero the region. Returns dest.

Safety

dest must be valid for n bytes of writes.

Defined in lang/std/ffi/libc.ks