0090-fptr.c - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
0090-fptr.c (121B)
---
1 struct S
2 {
3 int (*fptr)();
4 };
5
6 int
7 foo()
8 {
9 return 0;
10 }
11
12 int
13 main()
14 {
15 struct S v;
16
17 v.fptr = foo;
18 return v.fptr();
19 }
20