c implementation of grep command -resource("The practise of programming"-kerninghan and pike)