summaryrefslogtreecommitdiffstats
path: root/man3/strverscmp.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/strverscmp.311
1 files changed, 5 insertions, 6 deletions
diff --git a/man3/strverscmp.3 b/man3/strverscmp.3
index e33a569..ad3ebeb 100644
--- a/man3/strverscmp.3
+++ b/man3/strverscmp.3
@@ -4,7 +4,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH strverscmp 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH strverscmp 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
strverscmp \- compare two version strings
.SH LIBRARY
@@ -14,7 +14,7 @@ Standard C library
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <string.h>
-.PP
+.P
.BI "int strverscmp(const char *" s1 ", const char *" s2 );
.fi
.SH DESCRIPTION
@@ -33,7 +33,7 @@ which is implemented using
.BR versionsort (3),
which again uses
.BR strverscmp ().
-.PP
+.P
Thus, the task of
.BR strverscmp ()
is to compare two strings and find the "right" order, while
@@ -44,7 +44,7 @@ the locale category
.BR LC_COLLATE ,
so is meant mostly for situations
where the strings are expected to be in ASCII.
-.PP
+.P
What this function does is the following.
If both strings are equal, return 0.
Otherwise, find the position
@@ -85,7 +85,6 @@ T{
.BR strverscmp ()
T} Thread safety MT-Safe
.TE
-.sp 1
.\" FIXME: The marking is different from that in the glibc manual,
.\" which has:
.\"
@@ -105,7 +104,7 @@ It uses
.BR strverscmp ()
to compare the two strings given as its command-line arguments.
An example of its use is the following:
-.PP
+.P
.in +4n
.EX
$ \fB./a.out jan1 jan10\fP