On 8/27/22 20:38, Alejandro Colomar wrote:
void *memcpy(void dest[restrict n], const void src[restrict n], size_t n); void *memcpy(void *restrict dest, const void *restrict src, size_t n); void *memcpy(void *dest, const void *src, size_t n); void *memcpy(void *dest, void *src, size_t n); void *memcpy(void *, void *, size_t);
BTW, I forgot about 'noreturn', probably because memcpy(3) doesn't use it, but it's another layer of information which also adds a bit of noise, but is also useful to know. The Linux man-pages use it (see exit(3)); I added that more or less at the same time I added restrict.
-- Alejandro Colomar <http://www.alejandro-colomar.es/>
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature