def lxqstr(string, qchar, first):
    """
    Lex (scan) a quoted string.

    http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lxqstr_c.html

    :param string: String to be scanned.
    :type string: str
    :param qchar: Quote delimiter character.
    :type qchar: char (string of one char)
    :param first: Character position at which to start scanning.
    :type first: int
    :return: last and nchar
    :rtype: tuple
    """
    string = stypes.stringToCharP(string)
    qchar = ctypes.c_char(qchar.encode(encoding='UTF-8'))
    first = ctypes.c_int(first)
    last = ctypes.c_int()
    nchar = ctypes.c_int()
    libspice.lxqstr_c(string, qchar, first, ctypes.byref(last),
                      ctypes.byref(nchar))
    return last.value, nchar.value