| 1096 | return a; |
| 1097 | } |
| 1098 | cJSON *cJSON_CreateStringArray(const char **strings, int count) |
| 1099 | { |
| 1100 | int i; |
| 1101 | cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); |
| 1102 | for (i = 0; a && i < count; i++) |
| 1103 | { |
| 1104 | n = cJSON_CreateString(strings[i]); |
| 1105 | if (!i) |
| 1106 | a->child = n; |
| 1107 | else |
| 1108 | suffix_object(p, n); |
| 1109 | p = n; |
| 1110 | } |
| 1111 | return a; |
| 1112 | } |
| 1113 |
nothing calls this directly
no test coverage detected