X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/18c831dcd0ae4d660c70ccac69d27ed2a97851be..e6591bec0938b76b8c02083eb6ba101aba4e1b7e:/utils/versioncmp.3 diff --git a/utils/versioncmp.3 b/utils/versioncmp.3 index f3afc18..15d1593 100644 --- a/utils/versioncmp.3 +++ b/utils/versioncmp.3 @@ -3,11 +3,13 @@ .SH NAME versioncmp \- compare Debian-format version numbers .\" @versioncmp +.\" @VERSIONCMP .SH SYNOPSIS .nf .B "#include " .BI "int versioncmp(const char *" va ", const char *" vb ");" +.BI "int VERSIONCMP(const char *" va ", " op ", const char *" vb ");" .fi .SH DESCRIPTION The @@ -48,6 +50,13 @@ or +1 if .I va is newer than .IR vb . +.PP +The +.B VERSIONCMP +macro provides a more convenient syntax for the +.B versioncmp +function, by allowing a relational operator to be written between the +operands. .SH SEE ALSO .BR mLib (3). .PP