C code
// The cJSON structure: typedef struct cJSON { struct cJSON *next,*prev; struct cJSON *child; int type; // The type of the item, as above. char *valuestring; // The item's string, if type==cJSON_String int valueint; // The item's number, if type==cJSON_Number double valuedouble; // The item's number, if type==cJSON_Number char *string; // The item's name string, if this item is the child of, or is in the list of subitems of an object. } cJSON; typedef struct cJSON_Hooks { void *(*malloc_fn)(size_t sz); void (*free_fn)(void *ptr); } cJSON_Hooks; // Supply malloc, realloc and free functions to cJSON __declspec(dllexport) void cJSON_InitHooks(cJSON_Hooks* hooks);
C# code
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)