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

Alejandro Colomar
2022-08-28T11:24:58Z

[-- Attachment #1.1: Type: text/plain, Size: 827 bytes --]

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