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.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.