repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix initializing members multiple times
[tinycc.git]
/
tests
/
tests2
/
42_function_pointer.c
blob
49c331bf5d301269bfb4cf9d5855fc61e9458138
1
#include <stdio.h>
2
3
int
fred
(
int
p
)
4
{
5
printf
(
"yo %d
\n
"
,
p
);
6
return
42
;
7
}
8
9
int
(*
f
)(
int
) = &
fred
;
10
11
int
main
()
12
{
13
printf
(
"%d
\n
"
, (*
f
)(
24
));
14
15
return
0
;
16
}
17
18
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/