This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Variations of memset()
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Matthew Wilcox <willy at infradead dot org>, libc-alpha at sourceware dot org
- Date: Fri, 4 Aug 2017 14:09:11 -0400
- Subject: Re: Variations of memset()
- Authentication-results: sourceware.org; auth=none
- References: <20170804171117.GA13948@bombadil.infradead.org>
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.