Use musl memset
Write pattern to mem