Skip to content

Instantly share code, notes, and snippets.

@nixpulvis
Created November 13, 2013 18:19
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 nixpulvis/7453764 to your computer and use it in GitHub Desktop.
Save nixpulvis/7453764 to your computer and use it in GitHub Desktop.
void mempack(void **restrict dst, const void *restrict src, size_t n) {
memcpy(*dst, src, n);
*dst = (char *) *dst + n;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment