Closed dan-ryan closed 2 years ago
It's documented here: https://github.com/ibireme/yyjson/blob/31b0bb4b521d9c16b9e56e151fc92c9cb844b6eb/src/yyjson.h#L679-L681
Since this function will modify the input string with the YYJSON_READ_INSITU
option, this parameter cannot be declared const
.
Any reason why yyjson_read_opts doesn't accept
const char *
? I have to cast: