Renaming string functions.

This commit is contained in:
Branimir Karadžić
2017-04-16 21:55:53 -07:00
parent 010b472f69
commit d3200d1d26
10 changed files with 57 additions and 78 deletions

View File

@@ -235,12 +235,12 @@ namespace bx
bool result = false;
if (NULL != ptr)
{
len = (uint32_t)strnlen(ptr);
len = (uint32_t)strLen(ptr);
result = len != 0 && len < *_inOutSize;
if (len < *_inOutSize)
{
strlncpy(_out, len, ptr);
strCopy(_out, len, ptr);
}
}
@@ -340,7 +340,7 @@ namespace bx
if (stat("/tmp", fi)
&& FileInfo::Directory == fi.m_type)
{
strlncpy(_out, *_inOutSize, "/tmp");
strCopy(_out, *_inOutSize, "/tmp");
*_inOutSize = 4;
return true;
}
@@ -418,7 +418,7 @@ namespace bx
int32_t total = 0;
for (uint32_t ii = 0; NULL != _argv[ii]; ++ii)
{
total += (int32_t)strnlen(_argv[ii]) + 1;
total += (int32_t)strLen(_argv[ii]) + 1;
}
char* temp = (char*)alloca(total);