1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/str.hpp
2018-05-22 11:54:19 -04:00

22 lines
339 B
C++

#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