def _intern_atom(conn, name):
    """Get an atom for a string.

    :param xcffib.Connection: XCB connection
    :param str name: string to look up
    :returns: atom
    :rtype: int
    """
    return conn.core.InternAtom(False, len(name), name).reply().atom
