repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
libmudflap
/
testsuite
/
libmudflap.c
/
pass52-frag.c
blob
7ff9d577ba7497d12ac78c8989b08d4d563fb5d8
1
#include <stdio.h>
2
3
4
void
writestuff
(
FILE
*
f
)
5
{
6
fprintf
(
f
,
"hello world
\n
"
);
7
fputc
(
'y'
,
f
);
8
putc
(
'e'
,
f
);
9
}
10
11
void
readstuff
(
FILE
*
f
)
12
{
13
int
c
,
d
;
14
char
stuff
[
100
], *
s
;
15
c
=
fgetc
(
f
);
16
ungetc
(
c
,
f
);
17
d
=
fgetc
(
f
);
18
s
=
fgets
(
stuff
,
sizeof
(
stuff
),
f
);
19
}
20
21
int
main
()
22
{
23
FILE
*
f
;
24
writestuff
(
stdout
);
25
writestuff
(
stderr
);
26
f
=
fopen
(
"/dev/null"
,
"w"
);
27
writestuff
(
f
);
28
fclose
(
f
);
29
f
=
fopen
(
"/dev/zero"
,
"r"
);
30
readstuff
(
f
);
31
f
=
freopen
(
"/dev/null"
,
"w"
,
f
);
32
writestuff
(
f
);
33
fclose
(
f
);
34
35
return
0
;
36
}