Returns the format of the character at the index pos
in the rstr string (the type Rich_string).
The characters are indexed from 0. The return value is of the type Rich_cformat
If the specified index is beyond the string end or is negative, an error
is returned.