Skip to content

Instantly share code, notes, and snippets.

@merces
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merces/ca5aef8fbd09f2d66224 to your computer and use it in GitHub Desktop.
Save merces/ca5aef8fbd09f2d66224 to your computer and use it in GitHub Desktop.
Looping and modifying without changing its pointer
void encrypt(char *dest, size_t size)
{
while (size--)
*dest++ ^= 0x69;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment