contrib/gdb-7/gdb/utils.c
int
subset_compare (char *string_to_compare, char *template_string)
{
  int match;

  if (template_string != (char *) NULL && string_to_compare != (char *) NULL
      && strlen (string_to_compare) <= strlen (template_string))
    match =
      (strncmp
       (template_string, string_to_compare, strlen (string_to_compare)) == 0);
  else
    match = 0;
  return match;
}
/*
   ** subset_compare()
   **    Answer whether string_to_compare is a full or partial match to
   **    template_string.  The partial match must be in sequence starting
   **    at index 0.
 */
subset_compare()
Answer whether string_to_compare is a full or partial match to
template_string.  The partial match must be in sequence starting
at index 0.
subset_compare () Answer whether string_to_compare is a full or partial match to template_string . The partial match must be in sequence starting at index 0 .
int
subset_compare (char *string_to_compare, char *template_string)
{
  int match;
  if (template_string != (char *) NULL && string_to_compare != (char *) NULL
      && strlen (string_to_compare) <= strlen (template_string))
    match =
      (strncmp
       (template_string, string_to_compare, strlen (string_to_compare)) == 0);
  else
    match = 0;
  return match;
}
int subset_compare ( char * string_to_compare , char * template_string ) { int match ; if ( template_string != ( char * ) NULL && string_to_compare != ( char * ) NULL && strlen ( string_to_compare ) <= strlen ( template_string ) ) match = ( strncmp ( template_string , string_to_compare , strlen ( string_to_compare ) ) == 0 ) ; else match = 0 ; return match ; }
subset_compare()
    Answer whether string_to_compare is a full or partial match to
    template_string.
subset_compare () Answer whether string_to_compare is a full or partial match to template_string .