diff options
author | Teddy Wing | 2018-08-28 08:54:05 +0200 |
---|---|---|
committer | Teddy Wing | 2018-08-28 08:54:05 +0200 |
commit | 1814b50d5b96a3ddbf5fe1e3c8e781c53ac747c4 (patch) | |
tree | f7b7fe78643fad7ea1f994717e8c6cb27276cd01 /lib | |
parent | 2a3731003a53104340658c95491dc9587d2cea6c (diff) | |
download | DomeKey-1814b50d5b96a3ddbf5fe1e3c8e781c53ac747c4.tar.bz2 |
HeadphoneKey(runAction): Use `while` loop over `result->action`
Using `strlen` loops once over the string, so along with our `for` loop,
we have two loops over the string. No big deal since these shouldn't be
that long. But, using a `while` loop we can iterate just once.
Reference:
Alexandre C. (https://stackoverflow.com/users/373025/alexandre-c)
https://stackoverflow.com/questions/3213827/how-to-iterate-over-a-string-in-c/3213903#3213903
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions