MCPcopy Create free account
hub / github.com/NetHack/NetHack / do_grep

Function do_grep

util/makedefs.c:909–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907static void grep0(FILE *, FILE *, int);
908
909static void
910do_grep(void)
911{
912 if (!inputfp) {
913 Fprintf(stderr, "--grep requires --input\n");
914 }
915 if (!outputfp) {
916 Fprintf(stderr, "--grep requires --output\n");
917 }
918 if (!inputfp || !outputfp) {
919 makedefs_exit(EXIT_FAILURE);
920 /*NOTREACHED*/
921 }
922
923 grep0(inputfp, outputfp, 0);
924}
925
926static void
927grep0(FILE *inputfp0, FILE* outputfp0, int flg)

Callers 1

do_ext_makedefsFunction · 0.85

Calls 2

makedefs_exitFunction · 0.85
grep0Function · 0.85

Tested by

no test coverage detected