Glorious. I had to read it twice (it's not just resetting).https://twitter.com/oe1cxw/status/908700055758151680 …
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
I think it's a fine way to do it, although it might be one of those cases where assembler might be more readable :)
I should clarify, it's testament to my ignorance of C that I'm struggling to understand it, not your code.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.