A restricted implementation of GREP in C.