1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-07 07:56:19 +00:00
2015-12-13 22:34:58 +09:00

18 lines
239 B
C

#include <string.h>
#include <stdlib.h>
static void *rrr;
static void **p_rrr;
static void foo(void)
{
p_rrr = malloc(sizeof(void **));
*p_rrr = strdup("bbb");
p_rrr = (void **)((char *)p_rrr + 1);
}
int main()
{
foo();
return 0;
}