MCPcopy Create free account
hub / github.com/SimHacker/micropolis / MatchArg

Function MatchArg

micropolis-activity/src/sim/sim.c:596–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594
595
596int
597MatchArg(char *arg, char *pat)
598{
599 while (*pat && *arg) {
600 if (tolower(*arg) != tolower(*pat)) {
601 if (*pat == '_') {
602 pat++;
603 continue;
604 }
605 return (0);
606 }
607 arg++; pat++;
608 }
609 return (*arg == '\0');
610}
611
612
613int

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected