projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 2 development
[unix-history]
/
upgrade
/
src
/
from.c
#include <retrofit.h>
#include <stdio.h>
main
()
{
char
lbuf
[
BUFSIZ
];
if
(
chdir
(
getenv
(
"HOME"
)) <
0
)
exit
(
1
);
if
(
freopen
(
".mail"
,
"r"
,
stdin
) ==
NULL
)
exit
(
0
);
while
(
fgets
(
lbuf
,
sizeof
lbuf
,
stdin
) !=
NULL
)
if
(
lbuf
[
0
] ==
'F'
&&
lbuf
[
1
] ==
'r'
&&
lbuf
[
2
] ==
'o'
&&
lbuf
[
3
] ==
'm'
)
printf
(
"%s"
,
lbuf
);
exit
(
0
);
}