summaryrefslogtreecommitdiff
path: root/src/gfrom.c
blob: 09eaa808b423f47ff98334d65110cc6fd870e89d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "gfrom.h"

#include "str.h"

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