Return TypeFunction nameArguments
intCstrLastI(const char*,char,)

Declared in file: hzTextproc.h
Defined in file : hzTextproc.cpp

Function Logic:

0:START 1:!cpStr||!cpStr[0]||!testChar 2:Return -1 3:cpStr[nPosn]; 4:cpStr[nPosn]==testChar 5:nLast 6:Return nLast

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 ;
}