aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-16 22:30:01 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-20 22:58:04 +0000
commit08c3f380313a1262729bd0dbbbf5a85b6f695e81 (patch)
tree36af4fd723a036e7abca08e268fac691437b796c /src/common/util.h
parentdns_utils: factor TXT record loading code from checkpoint code (diff)
downloadmonero-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.h1
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
}