MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / pstrmtch

Function pstrmtch

Source/Utility/strings.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool pstrmtch(const char* first, const char* second, size_t count) {
50 if (strlen(first) >= count && strlen(second) >= count) {
51 for (size_t i = 0; i < count; i++) {
52 if (first[i] != second[i]) {
53 return false;
54 }
55 }
56 return true;
57 } else {
58 return false;
59 }
60}
61
62bool strcont(const char* string, const char* substring) {
63 size_t sub_len = strlen(substring);

Callers 1

GenerateParallelPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected