/* * FAMgrep1.c * Sample Simple FAMgrep code. * returns true if last char of name matches *p */ #include "exec/types.h" #include "FAM.h" #include "string.h" long MyGrepFunc(struct ScanListNode * node, char * p) { char * q; q = node->node.ln_Name; q = q + strlen(q) - 1; return *q == *p; }