json_object.h:document json_object_new_string_len()

I also added a couple trivial, but related, suggestions.

closes #460
This commit is contained in:
andy5995
2018-11-27 11:35:45 -06:00
parent 7539ab2d2e
commit 3b108935d0
2 changed files with 13 additions and 2 deletions

View File

@@ -1030,7 +1030,7 @@ struct json_object* json_object_new_string(const char *s)
return jso;
}
struct json_object* json_object_new_string_len(const char *s, int len)
struct json_object* json_object_new_string_len(const char *s, const int len)
{
char *dstbuf;
struct json_object *jso = json_object_new(json_type_string);