Registry / utility / libversion

libversion

JSON →
library3.0.4vcpkgunverified

Advanced version string comparison library

vcpkg install libversion
INSTALL
IMPORT
SIG · LIBVERSION
L
libversion
utilitycppv3.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

version.h
#include <version.h>

Compare two version strings using libversion

#include <version.h> #include <iostream> int main() { const char* v1 = "1.2.3"; const char* v2 = "1.10.0"; int result = version_compare(v1, v2); if (result < 0) std::cout << v1 << " < " << v2 << std::endl; else if (result > 0) std::cout << v1 << " > " << v2 << std::endl; else std::cout << v1 << " == " << v2 << std::endl; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.4latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

libversion — pip install libversion · libregistry