diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-16 22:30:01 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-20 22:58:04 +0000 |
commit | 08c3f380313a1262729bd0dbbbf5a85b6f695e81 (patch) | |
tree | 36af4fd723a036e7abca08e268fac691437b796c /src/common/util.h | |
parent | dns_utils: factor TXT record loading code from checkpoint code (diff) | |
download | monero-08c3f380313a1262729bd0dbbbf5a85b6f695e81.tar.xz |
util: add a vercmp function to compare version numbers
It is simple, supports simple x.y.z type numeric versions,
and does not attempt any kind of validation
Diffstat (limited to '')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index c2ffc44ca..bef4b6202 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -183,4 +183,5 @@ namespace tools unsigned get_max_concurrency(); bool is_local_address(const std::string &address); + int vercmp(const char *v0, const char *v1); // returns < 0, 0, > 0, similar to strcmp, but more human friendly than lexical - does not attempt to validate } |