dylanfarrer / ConCluster

ConCluster is a C library for simplifying the creation of multi-agent systems.
MIT License
1 stars 0 forks source link

Add version number method to API #22

Open dylanfarrer opened 5 months ago

dylanfarrer commented 5 months ago

Is your feature request related to a problem? Please describe. See title.

Describe the solution you'd like

#define MAJOR_VERSION 1
#define MINOR_VERSION 2
#define PATCH_VERSION 3

const char* get_library_version() {
    static char version[16];
    snprintf(version, sizeof(version), "%d.%d.%d", MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION);
    return version;
}

Describe alternatives you've considered N/A

Additional context N/A