spek

Acoustic spectrum analyser https://github.com/alexkay/spek spek.cc
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

spek-utils.h (239B)


      1 #pragma once
      2 
      3 inline int spek_max(int a, int b)
      4 {
      5     return a > b ? a : b;
      6 }
      7 
      8 inline int spek_min(int a, int b)
      9 {
     10     return a < b ? a : b;
     11 }
     12 
     13 // Compare version numbers, e.g. 1.9.2 < 1.10.0
     14 int spek_vercmp(const char *a, const char *b);