1 #include <stdio.h>
 2 #include <string.h>
 3 #include <stdlib.h>
 4 
 5 int main()
 6 {
 7   char *p = NULL;
 8 
 9   // various machinations
10   int code = 0xC0DE;
11   // meat flappings 
12   char *blog = (char*)malloc(9);
13 
14 
15   strncpy(blog,"nilshell",8); blog[8] = '\0';
16   printf("0x%x\n", code);
17   printf("%s\n",   blog);
18 
19   free(blog);
20   return 0;
21 }