On Sun, Feb 9, 2020 at 10:03 PM Bruno Haible <br...@clisp.org> wrote:
> ...
> Which function declarations could therefore profit from the 'restrict'
> keyword?

[SNIP ...]

I think the case of interest is subobjects of arrays:

    char a[] = "Hello World";
    char* b = a+5;

memcpy(a,b,5) would get you in trouble due to restrict. memmov(a,b,5)
would be OK.

Punning might be another interesting case, like the way the internet
functions seem to cast everything to byte arrays.

Jeff

Reply via email to