/* init_bar takes a pointer to a struct bar and initializes its fields */ extern void init_bar(struct bar *b);int foo() { struct bar *fb;init_bar(fb);/* Do some... 展开
/* init_bar takes a pointer to a struct bar and initializes its fields */ extern void init_bar(struct bar *b);int foo() { struct bar *fb;init_bar(fb);/* Do some stuff with fb */ ... return fb->field1;} 收起