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
fix to allow booting on drives other than 0 (from ps@lbl-csam)
[unix-history]
/
usr
/
src
/
sys
/
stand.att
/
cat.c
Commit
Line
Data
49c3c96b
1
/* cat.c 4.2 81/03/15 */
68d53a2f
BJ
2
3
main()
4
{
5
int c, i;
6
char buf[50];
7
8
do {
9
printf("File: ");
10
gets(buf);
11
i = open(buf, 0);
12
} while (i <= 0);
13
14
while ((c = getc(i)) > 0)
15
putchar(c);
16
exit(0);
17
}