Return TypeFunction nameArguments
intCstrFirst(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:Return nPosn 6:Return -1

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