blob: 8bf3ed73ee5634eb3814f30cda58c0bf350bec55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "json.h"
static void fill_item(HouseItem *item, char *key_buffer, char *value_buffer);
static void fill_buffer(FILE *fp, char *key_buffer, char *value_buffer);
void json_read(const char *filepath, HouseItem *out)
{
FILE *fp;
fp = fopen(filepath, "r");
if (fp == NULL) {
perror("json_read() Error");
exit(1);
}
char c, key_buffer[1024], value_buffer[1024];
size_t out_size = 0;
while ((c = fgetc(fp)) != EOF) {
switch (c) {
}
}
}
|