projects
/
rune.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Rune - Fix array passing, optimize constant array indices
[rune.git]
/
tests
/
fgetc.d
1
#!/usr/local/bin/rune -x
2
#
3
4
import "sys";
5
import <stdio>;
6
7
int
8
main(int ac, char **av)
9
{
10
int c;
11
12
stdio.stdin->setmode(M_FULL);
13
stdio.stdout->setmode(M_FULL);
14
15
while ((c = stdio.stdin->fgetc()) >= 0)
16
stdio.stdout->fputc(c);
17
}