diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-05-18 16:13:35 +1000 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-05-18 16:13:35 +1000 |
| commit | 7ac073a624773c8a771f7374267e784e1ff39cf8 (patch) | |
| tree | eb5f2ac7f896786c827a9172a6ab35a47f1f8bbc /include/tinyff | |
| parent | 9f7c492e20a868e22f9f3d489b07bc43833eee96 (diff) | |
feat(common): Implement memset implementation
Diffstat (limited to 'include/tinyff')
| -rw-r--r-- | include/tinyff/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tinyff/common.h b/include/tinyff/common.h index 34209e8..891f9ee 100644 --- a/include/tinyff/common.h +++ b/include/tinyff/common.h @@ -90,6 +90,13 @@ static inline void ff_memcpy(void *dest, const void *src, size_t n) } } +static inline void *ff_memset(void *dest, int ch, size_t count) { + unsigned char *p = (unsigned char *)dest; + while (count--) { + *p++ = (unsigned char)ch; + } + return dest; +} // Context bases // Default |
