| Return Type | Function name | Arguments |
|---|---|---|
| int | CstrLast | (const char*,const char*,) |
Declared in file: hzTextproc.h
Defined in file : hzTextproc.cpp
Function Logic:
Function body:
int CstrLast (const char* cpHaystack, const char* cpNeedle)
{
int32_t n ;
int32_t posn = -1;
if (!cpHaystack || !cpHaystack[0]|| !cpNeedle || !cpNeedle[0])
return -1;
for (n = 0; cpHaystack[n] ; n++)
{
if (cpHaystack[n] != cpNeedle[0])
continue ;
if (!CstrCompare(cpHaystack + n, cpNeedle))
posn = n ;
}
return posn ;
}