mirror of
https://github.com/json-c/json-c.git
synced 2026-03-21 22:19:07 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user