23 printf("Hello World\n");
27 struct mystruct_t s
; // sizeof(struct mystruct_t) bytes are allocated for s, but still contain garbage
33 s
.ptr
= say_goodbye
; // address of function
34 s
.ptr
= &say_goodbye
; // also address of function
35 s
.struct_size
= sizeof(struct mystruct_t
);
37 for(int i
=0; i
< 2; i
++){
38 printf("i is %d\n", i
);
41 if(!strcmp(s
.string
, "pass")){
45 printf("returning %d\n", retval
);