NetBSD-Bugs archive

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

Re: lib/56241: Many string functions do not confirm to the C99 standard



The following reply was made to PR lib/56241; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/56241: Many string functions do not confirm to the C99
 standard
Date: Wed, 9 Jun 2021 16:24:11 +0200

 On Wed, Jun 09, 2021 at 12:25:00AM +0000, doremylover123%gmail.com@localhost wrote:
 > >Description:
 > The restrict qualifiers are missing in many of these functions. I added a patch that adds them and updates the documentation with this.
 
 The patch doesn't really match the description. Note that the
 implementation is entirely valid under C99 rules: restrict for function
 arguments is only restricting the valid arguments further. Conforming
 code does not change its behavior if the restrict is not present.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index