blob: 3637d67aac3ff3b93510ac3fd9df35209dbe1cba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "internal.h"
// Equals returns true if string s and t are equivalent.
bool
string·equals(string s, string t)
{
vlong sL = string·len(s);
vlong tL = string·len(t);
if(sL != tL)
return false;
return memcmp(s, t, sL) == 0;
}
|