42 if (fseek(fp, 0, SEEK_END) != 0)
45 const INT64 size = _ftelli64(fp);
49 if (fseek(fp, 0, SEEK_SET) != 0)
52 const size_t usize = WINPR_ASSERTING_INT_CAST(
size_t, size);
53 char* str = calloc(usize + 1,
sizeof(
char));
57 WINPR_JSON* json = NULL;
58 const size_t s = fread(str,
sizeof(
char), usize, fp);