1 
2 #include <stdio.h>
3 
4 struct bleh {
5 	int	type;
6 	char	*name;
7 };
8 
9 struct hm {
10 	int		x;
11 	struct bleh	*ar[5];
12 	int		y;
13 };
14 
15 void
foo(struct bleh * b)16 foo(struct bleh *b)
17 {
18 	printf("%d, %s\n", b->type, b->name);
19 }
20 
21 int
main(void)22 main(void)
23 {
24 	struct bleh	b = { 123, "hello" };
25 	struct hm	h;
26 	struct hm	*hp = &h;
27 	int		i;
28 	h.ar[0] = &b;
29 	i = 0;
30 	foo(hp->ar[i]);
31 	return 0;
32 }
33 
34 
35 
36