chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils/versioncmp.h: Add a wrapper macro for `versioncmp'.
[mLib]
/
utils
/
versioncmp.3
diff --git
a/utils/versioncmp.3
b/utils/versioncmp.3
index f3afc186c59eb286c8000cd5091ad1a71a8ffb9e..15d159379d8c6ab87763d57c281297046de898cd 100644
(file)
--- a/
utils/versioncmp.3
+++ b/
utils/versioncmp.3
@@
-3,11
+3,13
@@
.SH NAME
versioncmp \- compare Debian-format version numbers
.\" @versioncmp
.SH NAME
versioncmp \- compare Debian-format version numbers
.\" @versioncmp
+.\" @VERSIONCMP
.SH SYNOPSIS
.nf
.B "#include <mLib/versioncmp.h>"
.BI "int versioncmp(const char *" va ", const char *" vb ");"
.SH SYNOPSIS
.nf
.B "#include <mLib/versioncmp.h>"
.BI "int versioncmp(const char *" va ", const char *" vb ");"
+.BI "int VERSIONCMP(const char *" va ", " op ", const char *" vb ");"
.fi
.SH DESCRIPTION
The
.fi
.SH DESCRIPTION
The
@@
-48,6
+50,13
@@
or +1 if
.I va
is newer than
.IR vb .
.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
.SH SEE ALSO
.BR mLib (3).
.PP