#include "sfactor.h"
#include <cmath>
+#include <cstring>
#include <algorithm>
for (i = 0; (i < asize(uh)); i++)
{
- if (strcmp(name, uh[i].name) == 0)
+ if (std::strcmp(name, uh[i].name) == 0)
{
return NCMT-1+uh[i].nh;
}
for (i = 0; (i < NCMT); i++)
{
- if (strncmp (name, gsft->atomnm[i], strlen(gsft->atomnm[i])) == 0)
+ if (std::strncmp (name, gsft->atomnm[i], std::strlen(gsft->atomnm[i])) == 0)
{
tndx[cnt] = i;
cnt++;
nrc = 0;
for (i = 0; i < cnt; i++)
{
- if (strlen(gsft->atomnm[tndx[i]]) > (size_t)nrc)
+ if (std::strlen(gsft->atomnm[tndx[i]]) > (size_t)nrc)
{
- nrc = strlen(gsft->atomnm[tndx[i]]);
+ nrc = std::strlen(gsft->atomnm[tndx[i]]);
fndx = tndx[i];
}
}