Add min helper

This commit is contained in:
Lauri Kenttä
2016-05-14 19:34:39 +03:00
parent 51ccb0255e
commit e9ccec0d76

View File

@@ -23,6 +23,13 @@ static inline int max(int a, int b) {
return a > b ? a : b;
}
/**
* Return the smaller of two numbers.
*/
static inline int min(int a, int b) {
return a < b ? a : b;
}
/**
* Trim BOM, spaces and tabs from the beginning of a string.
*