Skip to content

Instantly share code, notes, and snippets.

@matthewpalmer
Last active August 29, 2015 14:05
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 matthewpalmer/a23bf65909b31ba3065a to your computer and use it in GitHub Desktop.
Save matthewpalmer/a23bf65909b31ba3065a to your computer and use it in GitHub Desktop.
// Get the index in the array of the header
static int indexOfHeader(free_header_t *header) {
int index = (int) ((void *)header - (void *)memory);
return index;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment