Implement retrieval of option values via the C API.
Format option values.