X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/f61b7e2cc291ae9015f23dc8786adc1dc88eff59..804935b97e0b73f4456e2c0661c7ca1c7ef7ad34:/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