Skip to content

Instantly share code, notes, and snippets.

@ebibibi
Created June 28, 2012 15:04
Show Gist options
  • Select an option

  • Save ebibibi/3011880 to your computer and use it in GitHub Desktop.

Select an option

Save ebibibi/3011880 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void)
{
char *p;
char buf[2];
buf[1] = '\0';
p = buf;
int i;
for(i=0; i<32; i++) {
*p = "0123456789abcdef"[i & 0xf];
printf("%s",p);
}
printf("\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment