summaryrefslogtreecommitdiff
path: root/src/gfrom.c
blob: c04b65fc090b9e5eee9d8df231a70253c471b48c (plain)
1
2
3
4
5
6
7
8
#include "str.h"
#include "gfrom.h"

int gfrom(char *s,int len)
{
  while ((len > 0) && (*s == '>')) { ++s; --len; }
  return (len >= 5) && !str_diffn(s,"From ",5);
}