memzap

replay memory writes
git clone git://git.2f30.org/memzap
Log | Files | Refs | README | LICENSE

test.c (209B)


      1 #include <stdio.h>
      2 #include <string.h>
      3 
      4 char buf[64] __attribute__ ((section ("TRACED_AREA"))) = { 0 };
      5 
      6 int
      7 main(void)
      8 {
      9 	fprintf(stderr, "buf is at %p\n", buf);
     10 	memset(buf, 0x41, sizeof(buf));
     11 	return 0;
     12 }