mirror of https://github.com/mkerrisk/man-pages
inet_ntop.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in inet_ntop(). Let's use it here too. .../glibc$ grep_glibc_prototype inet_ntop inet/arpa/inet.h:64: extern const char *inet_ntop (int __af, const void *__restrict __cp, char *__restrict __buf, socklen_t __len) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
decc37b2f7
commit
cd18d63b1a
|
@ -30,8 +30,8 @@ inet_ntop \- convert IPv4 and IPv6 addresses from binary to text form
|
|||
.nf
|
||||
.B #include <arpa/inet.h>
|
||||
.PP
|
||||
.BI "const char *inet_ntop(int " "af" ", const void *" "src" ,
|
||||
.BI " char *" "dst" ", socklen_t " "size" );
|
||||
.BI "const char *inet_ntop(int " af ", const void *restrict " src ,
|
||||
.BI " char *restrict " dst ", socklen_t " size );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
This function converts the network address structure
|
||||
|
|
Loading…
Reference in New Issue