mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
14 lines
180 B
C
14 lines
180 B
C
#ifndef _SWAY_UTIL_H
|
|
#define _SWAY_UTIL_H
|
|
|
|
/**
|
|
* Wrap i into the range [0, max[
|
|
*/
|
|
int wrap(int i, int max);
|
|
|
|
/**
|
|
* Count number of digits in int
|
|
*/
|
|
int numlen(int n);
|
|
|
|
#endif
|