projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Research V7 development
[unix-history]
/
usr
/
src
/
cmd
/
standalone
/
cat.c
Commit
Line
Data
a570deab
KT
1
main()
2
{
3
int c, i;
4
char buf[50];
5
6
do {
7
printf("File: ");
8
gets(buf);
9
i = open(buf, 0);
10
} while (i <= 0);
11
12
while ((c = getc(i)) > 0)
13
putchar(c);
14
exit(0);
15
}