Cyclone Scheme  0.28.0

◆ Cyc_utf8_validate_stream()

uint32_t Cyc_utf8_validate_stream ( uint32_t *  state,
char *  str,
size_t  len 
)

Use this when validating from a stream, as it may be that the stream stopped in the middle of a codepoint, hence state passed in as an arg, so it can be tested in a loop and also after the loop has finished.

From https://stackoverflow.com/a/22135005/101258