repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
linux ttyname{_r}: Make tty checks consistent
[glibc.git]
/
elf
/
order2mod2.c
blob
026cd2acc46825ccee15d7b1437c0d9881a4a998
1
#include <stdio.h>
2
3
extern
int
foo
(
void
);
4
extern
int
bar
(
void
);
5
6
void
7
__attribute__
((
constructor
))
8
init
(
void
)
9
{
10
(
void
) (
foo
() -
bar
());
11
}
12
13
static void
14
__attribute__
((
destructor
))
15
fini
(
void
)
16
{
17
putchar
(
'2'
);
18
}