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
/
readdir.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
Directory dir;
11
12
if (dir.opendir(av[1]) == 0) {
13
while (dir.readdir() > 0) {
14
stdio.stdout->format("ENTRY %016x %d %s\n",
15
dir.ino, dir.type, &dir.name[0]);
16
}
17
}
18
}