- fread(JSON_S, sizeof(char), filesize(fh), fh);
+ /*t = malloc(2048);
+ if (t == NULL) {
+ fprintf(stderr, "malloc(): errno=%d\n", errno);
+ return 3;
+ }*/
+ //printf("\n%d\n\n", sizeof(*t));
+ printf("\n%d", sizeof(*t));
+ printf("\n%d", sizeof(t));
+ printf("\n%d\n\n", sizeof(t)/sizeof(t[0]));
+ z = fread(json_string, 1, filesize(fh), fh);
+ //char json_s[2048];
+ fclose(fh); fh = NULL;
+ printf("[%d]\n", z);
+ json_string[z] = '\0';