Semantic versioning is back! In C form!
What do you do when you want semver but you don't have node installed? Write it in C, of course! HA HA.
There's a library buried underneath the command-line program and it should be easy enough to integrate into another application. I haven't really tested this theory though so you're sort of on your own there.
➜ semver-c git:(master) semver-c -hsemver-c 0.0.0A C implementation of the specificationCopyright Conrad Pankoff <email@example.com>This is a very rough clone of node-semver - please seefor what that is.Usage: semver-c [options] <version> [<version> [...]]Prints valid versions sorted by SemVer precedenceOptions:-vPrints out the version number.-hThis is the help. You're looking at it.-r <range>Print versions that match the specified range.-RPrint versions in reverse order.Program exits successfully if any valid version satisfies allsupplied ranges, and prints all satisfying versions.If no satisfying versions are found, then exits failure.Versions are printed in order, so supplying multiple versionsto the utility will just sort them.
3-clause BSD. A copy is included with the source.