diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-07-10 22:40:05 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-07-10 22:40:05 -0500 |
commit | 29f97864e1b0ef142249898b39332b26a5fb4906 (patch) | |
tree | f133891c532c819910cfa1a46a38480981287ac2 /src/json.h |
add: json file function implemented
Diffstat (limited to 'src/json.h')
-rw-r--r-- | src/json.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h new file mode 100644 index 0000000..23cab9a --- /dev/null +++ b/src/json.h @@ -0,0 +1,16 @@ +#ifndef __JSON +#define __JSON +#include <stdio.h> +#include <stdlib.h> +#include <assert.h> +#include <string.h> + +typedef struct { + float price; + float area; + float latitude; + float longitude; +} HouseItem; + +void json_read(const char *filepath, HouseItem *out); +#endif |