telnetd/FkUG.cpp
/*--- function begmatch --------------------------------------------
 *
 *  Check whether a string begins with a given initial substring
 *
 *  Entry:  pattern  points to the desired initial substring
 *          target   is the string we want to check.
 *
 *  Exit:   Returns True if a case-sensitive match, else FALSE.
 */
function begmatch
Check whether a string begins with a given initial substring

pattern  points to the desired initial substring
target   is the string we want to check.

Returns True if a case-sensitive match, else FALSE.
function begmatch Check whether a string begins with a given initial substring pattern points to the desired initial substring target is the string we want to check . Returns True if a case - sensitive match else FALSE .
int
begmatch(char *pattern, char *target)
{
   while(*pattern && *pattern == *target) {
      pattern++; target++;
   }
   return (*pattern == 0);
}
int begmatch ( char * pattern , char * target ) { while ( * pattern && * pattern == * target ) { pattern ++ ; target ++ ; } return ( * pattern == 0 ) ; }
function begmatch
  Check whether a string begins with a given initial substring
function begmatch Check whether a string begins with a given initial substring