MCPcopy Create free account
hub / github.com/OISF/libhtp / bstr_equal_c

Function bstr_equal_c

test/test_utils.cpp:263–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261};
262
263bool bstr_equal_c(const bstr *b, const char *c) {
264 if ((c == NULL) || (b == NULL)) {
265 return (c == NULL) && (b == NULL);
266 } else {
267 return (0 == bstr_cmp_c(b, c));
268 }
269}
270
271void append_message(std::ostream & o,
272 const char *label, const char *expected, bstr *actual) {

Callers 1

UriIsExpectedFunction · 0.85

Calls 1

bstr_cmp_cFunction · 0.85

Tested by

no test coverage detected