summaryrefslogtreecommitdiff
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 @@
+#include "str.h"
+#include "gfrom.h"
+
+int gfrom(s,len)
+char *s;
+int len;
+{
+ while ((len > 0) && (*s == '>')) { ++s; --len; }
+ return (len >= 5) && !str_diffn(s,"From ",5);
+}