`cver` is a header-only C library for checking version strings, adhering loosely to [semver].
[semver]: https://semver.org/
This library provides functions for comparing two version strings, specifically the "major", "minor", and "patch" portions of a version string adhering to [semver]. Other parts of the [semver] standard (pre-release identifiers, build identifiers, etc) are not used.
Feel free to look within the header for API definitions. To include this library in your C project, simply download `cver.h` and place it within your C project. Then, add this to the top of your C file:
```
#define CVER_IMPLEMENTATION
#include "cver.h"
```
The `#include` line should be placed in any C files that will use this library's functions. The `#define` line should only be used once in all of your project files, ideally in a file that isn't recompiled often.
For those who are interested, here is a rough grammar for a `cver` string:
```
version = number , "." , number , "." , number ;
(* NOTE: number must be between 0 and 255 *)
number = "0"
| positive , { digit } ;
digit = "0" | positive ;
positive = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
```