Closed monkbroc closed 8 years ago
http://zserge.com/jsmn.html has this example
jsmntok_t tokens[256]; const char *js; jsmnerr_t r; js = ...; r = jsmn_parse(&parser, js, tokens, 256);
jsmnerr_t is not a type in jsmn.h. jsmn_parse actually returns int.
jsmnerr_t
jsmn.h
jsmn_parse
int
In addition jsmn_parse needs the length of js as a 3rd argument.
js
Could you please update the website to reflect this?
Thanks for the neat library :+1:
Thanks, fixed!
http://zserge.com/jsmn.html has this example
jsmnerr_t
is not a type injsmn.h
.jsmn_parse
actually returnsint
.In addition
jsmn_parse
needs the length ofjs
as a 3rd argument.Could you please update the website to reflect this?
Thanks for the neat library :+1: