/* Compare two strings for equality. The string pointed to by 'Buffer' may or may not be null-terminated, so only compare up to the length of Str. */
STATIC UINTN t_strcmp(CHAR8 *Buffer, CHAR8 *Str)
/* Compare two strings for equality. The string pointed to by 'Buffer' may or may not be null-terminated, so only compare up to the length of Str. */
STATIC UINTN t_strcmp(CHAR8 *Buffer, CHAR8 *Str)
{
  UINTN  Len;
  Len = 0;
  while (*Str && (*Str == *Buffer)) {
    Buffer++;
    Str++;
    Len++;
  }
  if (*Str) {
    return 0;
  }
  return Len;
}