Created
September 4, 2014 06:01
-
-
Save dpzmick/5d8d3e89c7a067f284b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
void fancy_function( void * a ) { | |
unsigned char * bytes = (unsigned char *) &a ; | |
size_t i; | |
for (i = 0; i < 8; i++) { | |
printf("%d\n", bytes[i]); | |
} | |
} | |
int main() { | |
void * a = (void *) 0x0807060504030201; | |
fancy_function(a); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment