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