MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / embedded_null

Function embedded_null

openvpn/common/string.hpp:203–209  ·  view source on GitHub ↗

return true if str of size len contains an embedded null

Source from the content-addressed store, hash-verified

201
202 // return true if str of size len contains an embedded null
203 inline bool embedded_null(const char *str, size_t len)
204 {
205 while (len--)
206 if (!*str++)
207 return true;
208 return false;
209 }
210
211 // return the length of a string, omitting trailing nulls
212 inline size_t len_without_trailing_nulls(const char *str, size_t len)

Callers 1

x509_get_subjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected