]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
ffs.3: All these functions live in <strings.h>.
authorElliott Hughes <enh@google.com>
Tue, 14 Nov 2023 00:46:43 +0000 (16:46 -0800)
committerAlejandro Colomar <alx@kernel.org>
Sun, 19 Nov 2023 12:42:29 +0000 (13:42 +0100)
In most cases you'll get them transitively through <string.h>, but it's
misleading for the man page to claim that they're _in_ <string.h>, and
especially weird to claim they're in _different_ headers from each
other!

This is also true of Apple's headers, and FreeBSD (the other BSDs only
have ffs(), not its siblings).

Signed-off-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man3/ffs.3

index 5a5e1c21cb18f241cab1bbc6506d1beaf283b238..aab5f109989dd0f3864783ed056c986ac629a0e3 100644 (file)
@@ -22,9 +22,6 @@ Standard C library
 .B #include <strings.h>
 .P
 .BI "int ffs(int " i );
-.P
-.B #include <string.h>
-.P
 .BI "int ffsl(long " i );
 .BI "int ffsll(long long " i );
 .fi
@@ -87,9 +84,6 @@ T{
 .BR ffsll ()
 T}     Thread safety   MT-Safe
 .TE
-.SH VERSIONS
-BSD systems have a prototype in
-.IR <string.h> .
 .SH STANDARDS
 .TP
 .BR ffs ()