Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux