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-01-25 10:38:14 -05:00

20 lines
316 B
C++

#ifndef LIBSARP_STR_HPP
#define LIBSARP_STR_HPP
#include <cstring>
namespace sarp
{
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;
}
}
#endif