| 1075 | return a; |
| 1076 | } |
| 1077 | cJSON *cJSON_CreateDoubleArray(double *numbers, int count) |
| 1078 | { |
| 1079 | int i; |
| 1080 | cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); |
| 1081 | for (i = 0; a && i < count; i++) |
| 1082 | { |
| 1083 | n = cJSON_CreateDouble((long double)numbers[i], -1); |
| 1084 | if (!i) |
| 1085 | a->child = n; |
| 1086 | else |
| 1087 | suffix_object(p, n); |
| 1088 | p = n; |
| 1089 | } |
| 1090 | return a; |
| 1091 | } |
| 1092 | cJSON *cJSON_CreateStringArray(const char **strings, int count) |
| 1093 | { |
| 1094 | int i; |
nothing calls this directly
no test coverage detected