ported runescape-update-client to C