diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/burneye2/tmp/funcptr/fptr.c | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/burneye2/tmp/funcptr/fptr.c')
| -rw-r--r-- | other/burneye2/tmp/funcptr/fptr.c | 24 |
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 | |||
| 2 | int m2 (int a); | ||
| 3 | |||
| 4 | typedef int (* fptr)(int); | ||
| 5 | |||
| 6 | |||
| 7 | int | ||
| 8 | main (int argc, char *argv[]) | ||
| 9 | { | ||
| 10 | fptr subfunc; | ||
| 11 | |||
| 12 | |||
| 13 | subfunc = m2; | ||
| 14 | return (subfunc (argc)); | ||
| 15 | } | ||
| 16 | |||
| 17 | |||
| 18 | int | ||
| 19 | m2 (int a) | ||
| 20 | { | ||
| 21 | return (a << 1); | ||
| 22 | } | ||
| 23 | |||
| 24 | |||
