]> 4ch.mooo.com Git - 16.git/blob - src/ps.c
p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I...
[16.git] / src / ps.c
1 #include <stdio.h>\r
2 #include "src/lib/16_head.h"\r
3 \r
4 #define PRINT_OPAQUE_STRUCT(p)  print_mem((p), sizeof(*(p)))\r
5 \r
6 void print_mem(void const *vp, size_t n)\r
7 {\r
8         size_t i;\r
9         unsigned char const *p = vp;\r
10         for (i=0; i<n; i++)\r
11                 printf("%02x\n", p[i]);\r
12         putchar('\n');\r
13 };\r
14 \r
15 void main()\r
16 {\r
17         static global_game_variables_t gvar;\r
18         PRINT_OPAQUE_STRUCT(&gvar);\r
19 }\r