summaryrefslogtreecommitdiff
path: root/other/burneye2/tmp/funcptr/fptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/burneye2/tmp/funcptr/fptr.c')
-rw-r--r--other/burneye2/tmp/funcptr/fptr.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/other/burneye2/tmp/funcptr/fptr.c b/other/burneye2/tmp/funcptr/fptr.c
new file mode 100644
index 0000000..291656b
--- /dev/null
+++ b/other/burneye2/tmp/funcptr/fptr.c
@@ -0,0 +1,24 @@
1
2int m2 (int a);
3
4typedef int (* fptr)(int);
5
6
7int
8main (int argc, char *argv[])
9{
10 fptr subfunc;
11
12
13 subfunc = m2;
14 return (subfunc (argc));
15}
16
17
18int
19m2 (int a)
20{
21 return (a << 1);
22}
23
24