In C this is just
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include "cJSON.h"
cJSON *get_solutions(const char *path) {
FILE *fp = fopen(path, "r");
cJSON *solutions = NULL;
if (fp) {
fseek(fp, 0, SEEK_END);
long len = ftell(fp);
rewind(fp);
Comment too long. Click here to view the full text.