summaryrefslogtreecommitdiffstats
path: root/gfrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfrom.c')
-rw-r--r--gfrom.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gfrom.c b/gfrom.c
new file mode 100644
index 0000000..87f9ad4
--- /dev/null
+++ b/gfrom.c
@@ -0,0 +1,10 @@
1#include "str.h"
2#include "gfrom.h"
3
4int gfrom(s,len)
5char *s;
6int len;
7{
8 while ((len > 0) && (*s == '>')) { ++s; --len; }
9 return (len >= 5) && !str_diffn(s,"From ",5);
10}