Variations of memset()

Carlos O'Donell carlos@redhat.com
Fri Aug 4 18:09:00 GMT 2017


On 08/04/2017 01:11 PM, Matthew Wilcox wrote:
> void *memset16(uint16_t *s, uint16_t v, size_t count);
> void *memset32(uint32_t *s, uint32_t v, size_t count);
> void *memset64(uint64_t *s, uint64_t v, size_t count);
> void *memset_s(unsigned short *p, unsigned short v, size_t count);
> void *memset_i(unsigned int *p, unsigned int v, size_t count);
> void *memset_l(unsigned long *p, unsigned long v, size_t count);
> void *memset_ll(unsigned long long *p, unsigned long long v, size_t count);
> void *memset_p(void **p, void *v, size_t count);

How are users expected to use these functions?

What current uses to users use them for?

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list