mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 22:22:33 -04:00
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
This commit is contained in:
parent
e8a7525ceb
commit
08c3f38031
4 changed files with 63 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue