MCPcopy Create free account
hub / github.com/apache/httpd / startsWith

Function startsWith

modules/mappers/mod_rewrite.c:996–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994}
995
996static int startsWith(request_rec *r, const char *haystack, const char *needle) {
997 int rc = (ap_strstr_c(haystack, needle) == haystack);
998 rewritelog(r, 5, NULL, "prefix_stat startsWith(%s, %s) %d", haystack, needle, rc);
999 return rc;
1000}
1001/*
1002 * stat() only the first segment of a path, and only if it matches the output of the last matching rule
1003 */

Callers 1

prefix_statFunction · 0.85

Calls 1

ap_strstr_cFunction · 0.85

Tested by

no test coverage detected