i have this cpp code that i need an equvalent in vb.net or at leat know what its doing so i can figure out a conversion myself
const char * CResult::strnchr(const char *str, int len, char c) const
{
if (!str)
return NULL;
const char *p = str;
while (len > 0)
{
if (!*p)
return NULL;
if (*p == c)
return p;
p++;
len--;
}
return NULL;
}
and this one
memcmp(prevprev, "ANY", 3)
thank you
See this. You can do the same thing in VB.net using
String.IndexOf, e.g.Example copied from MSDN.