| 1013 | return item; |
| 1014 | } |
| 1015 | cJSON *cJSON_CreateInt(uint64 num, int sign) |
| 1016 | { |
| 1017 | cJSON *item = cJSON_New_Item(); |
| 1018 | if (item) |
| 1019 | { |
| 1020 | item->type = cJSON_Int; |
| 1021 | item->valuedouble = (double)num; |
| 1022 | item->valueint = (int64)num; |
| 1023 | item->sign = sign; |
| 1024 | } |
| 1025 | return item; |
| 1026 | } |
| 1027 | cJSON *cJSON_CreateString(const char *string) |
| 1028 | { |
| 1029 | cJSON *item = cJSON_New_Item(); |
no test coverage detected