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