| 1007 | return item; |
| 1008 | } |
| 1009 | cJSON *cJSON_CreateInt(uint64 num, int sign) |
| 1010 | { |
| 1011 | cJSON *item = cJSON_New_Item(); |
| 1012 | if (item) |
| 1013 | { |
| 1014 | item->type = cJSON_Int; |
| 1015 | item->valuedouble = (double)num; |
| 1016 | item->valueint = (int64)num; |
| 1017 | item->sign = sign; |
| 1018 | } |
| 1019 | return item; |
| 1020 | } |
| 1021 | cJSON *cJSON_CreateString(const char *string) |
| 1022 | { |
| 1023 | cJSON *item = cJSON_New_Item(); |
no test coverage detected