]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/string/README: [v]aprintf(3) are in libc
authorAlejandro Colomar <alx@kernel.org>
Thu, 19 Mar 2026 00:45:24 +0000 (01:45 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 20 Mar 2026 08:32:35 +0000 (09:32 +0100)
[v]aprintf(3) are now part of a libc implementation: gnulib.
They are also documented in a manual page.  Thus, refer to them as
[v]aprintf(3).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/string/README

index 7bd1d3129bed42ae9eae7a492d59d27957985ce5..b8a231b408a09aa65ee13004a406abcfa3fbda4c 100644 (file)
@@ -21,7 +21,7 @@ Don't use some libc functions without Really Good Reasons:
 
 <stdio.h>
     asprintf(3)
-       Use aprintf() instead.
+       Use aprintf(3) instead.
        It is difficult to handle errors after asprintf(3).
        Also, it makes it more difficult for static analyzers to check
        that memory is later free(3)d appropriately.
@@ -209,7 +209,7 @@ strcpy/ - String copying
 
 sprintf/ - Formatted string creation
 
-    aprintf()
+    aprintf(3)
        sprintf(3) variant that allocates.
        It has better interface than asprintf(3).