/* * pmatch(): * Return 2 on exact match. * Return 1 on substring match. * Return 0 on no match. * Return -1 on error. * *estr will point to the end of thelongest exact or substring match. */