/* Create Arrays: */cJSON *cJSON_CreateIntArray(int*numbers,intcount){inti;cJSON *n=0,*p=0,*a=cJSON_CreateArray();for(i=0;a && i<count;i++){n=cJSON_CreateNumber(numbers[i]);if(!i)a->child=n;elsesuffix_object(p,n);p=n;}returna;} 开发者ID:AustESE-Infrastructure,项目名...
/* Create Arrays: */cJSON*cJSON_CreateIntArray(int*numbers,intcount){inti;cJSON*n=0,*p=0,*a=cJSON_CreateArray();for(i=0;a&&i<count;i++){n=cJSON_CreateNumber(numbers[i]);if(!i)a->child=n;elsesuffix_object(p,n);p=n;}returna;} ...
cJSON_CreateNumber does not take care if number is unsigned. It always assume the input value is signed. There is no way to handle this. Maybe different function and different type identifier? e.g. cJSON_SNumber and cJSON_UNumber something... Contributor FSMaxBcommentedSep 9, 2016 Interna...
/* Create Arrays: */cJSON *cJSON_CreateIntArray(int*numbers,intcount){inti;cJSON *n=0,*p=0,*a=cJSON_CreateArray();for(i=0;a && i<count;i++){n=cJSON_CreateNumber(numbers[i]);if(!i)a->child=n;elsesuffix_object(p,n);p=n;}returna;} 开发者ID:AustESE-Infrastructure,项目名...