1 2 3 4 5 6 7 8 9 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); }