mirror of https://github.com/oxen-io/lokinet
code for disabling default hidden service
parent
91becb93c9
commit
1f02498fc0
@ -1,22 +1 @@
|
||||
#ifndef LIBLLARP_STR_HPP
|
||||
#define LIBLLARP_STR_HPP
|
||||
#include <cstring>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
static bool
|
||||
StrEq(const char *s1, const char *s2)
|
||||
{
|
||||
size_t sz1 = strlen(s1);
|
||||
size_t sz2 = strlen(s2);
|
||||
if(sz1 == sz2)
|
||||
{
|
||||
return strncmp(s1, s2, sz1) == 0;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace llarp
|
||||
|
||||
#endif
|
||||
#include <llarp/str.hpp>
|
||||
|
Loading…
Reference in New Issue