| Return Type | Function name | Arguments |
|---|---|---|
| int | CstrFirstI | (const char*,char,) |
Declared in file: hzTextproc.h
Defined in file : hzTextproc.cpp
Function Logic:
Function body:
int CstrFirstI (const char* cpStr, char testChar)
{
int32_t nPosn = 0;
if (!cpStr || !cpStr[0]|| !testChar)
return -1;
for (nPosn = 0; cpStr[nPosn] ; nPosn++)
{
if (_tolower(cpStr[nPosn]) == _tolower(testChar))
return nPosn ;
}
return -1;
}