index
:
sway.git
master
fork of sway with action binder commands
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
sway
/
util.c
blob: 9a59ddf9155b7398dd139e23d51874fb0b5f3120 (
plain
)
1
2
3
4
5
#include "util.h" int wrap(int i, int max) { return ((i % max) + max) % max; }