code: def find_sdl_attrs(prefix: str) -> Iterator[Tuple[str, Any]]:
      
      from tcod._libtcod import lib
  
      if prefix.startswith("SDL_"):
          name_starts_at = 4
      elif prefix.startswith("SDL"):
          name_starts_at = 3
      else:
          name_starts_at = 0
      for attr in dir(lib):
          if attr.startswith(prefix):
              yield attr[name_starts_at:], getattr(lib, attr)
docs: Return names and values from `tcod.lib`.
  
      `prefix` is used to filter out which names to copy.