"restrict" in brackets - what is this?

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

 



I am looking at the man page for inet_ntop(3) on my Fedora 38 system,
and it shows the following:

 const char *inet_ntop(int af, const void *restrict src,
                       char dst[restrict .size], socklen_t size);
                                ^^^^^^^^^^^^^^

I have never seen the underlined syntax used before.  Is this a GCC
extension, something from one of the newer C standards, or something
else?

Sorry for the potentially stupid question, but none of my searches have
turned up anything.

--
========================================================================
Google                                      Where SkyNet meets Idiocracy
========================================================================




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux