]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/strverscmp.3
fanotify_init.2, fanotify.7: Document FAN_REPORT_TID
[thirdparty/man-pages.git] / man3 / strverscmp.3
index e773a592d58a6264dab4f11718388fc3a0ea8eed..7201591593f28b2c7c22a5b67eb9f3c71be7ba85 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH STRVERSCMP 3  2017-03-13 "GNU" "Linux Programmer's Manual"
+.TH STRVERSCMP 3  2017-09-15 "GNU" "Linux Programmer's Manual"
 .SH NAME
 strverscmp \- compare two version strings
 .SH SYNOPSIS
 .nf
 .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.br
 .B #include <string.h>
-.sp
+.PP
 .BI "int strverscmp(const char *" s1 ", const char *" s2 );
 .fi
 .SH DESCRIPTION
@@ -50,7 +49,7 @@ which is implemented using
 .BR versionsort (3),
 which again uses
 .BR strverscmp ().
-
+.PP
 Thus, the task of
 .BR strverscmp ()
 is to compare two strings and find the "right" order, while
@@ -61,7 +60,7 @@ the locale category
 .BR LC_COLLATE ,
 so is meant mostly for situations
 where the strings are expected to be in ASCII.
-
+.PP
 What this function does is the following.
 If both strings are equal, return 0.
 Otherwise, find the position
@@ -119,17 +118,16 @@ It uses
 .BR strverscmp ()
 to compare the two strings given as its command-line arguments.
 An example of its use is the following:
-
-.in
+.PP
 .in +4n
-.nf
-$ i\fB./a.out jan1 jan10\fP
+.EX
+$ \fB./a.out jan1 jan10\fP
 jan1 < jan10
-.fi
+.EE
 .in
 .SS Program source
 \&
-.nf
+.EX
 #define _GNU_SOURCE
 #include <string.h>
 #include <stdio.h>
@@ -152,7 +150,7 @@ main(int argc, char *argv[])
 
     exit(EXIT_SUCCESS);
 }
-.fi
+.EE
 .SH SEE ALSO
 .BR rename (1),
 .BR strcasecmp (3),