/* Return SMBIOS string for the given string number. */
CHAR8* LibGetSmbiosString(IN SMBIOS_STRUCTURE_POINTER *Smbios, IN UINT16 StringNumber)
/* Return SMBIOS string for the given string number. */
CHAR8* LibGetSmbiosString(IN SMBIOS_STRUCTURE_POINTER *Smbios, IN UINT16 StringNumber)
{
  UINT16  Index;
  CHAR8   *String;
  ASSERT (Smbios != NULL);
  String = (CHAR8 *)(Smbios->Raw + Smbios->Hdr->Length);
  for (Index = 1; Index <= StringNumber; Index++) {
    if (StringNumber == Index) {
      return String;
    }
    for ( ; *String != 0; String++) {
    }
    String++;
    if (*String == 0) {
      Smbios->Raw = (UINT8 *)++String;
      return NULL;
    }
  }
  return NULL;
}