#ifndef SETTINGS_FILE_H
#define SETTINGS_FILE_H

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

#include <errno.h>

#define SET_LEN 10

#define SCORE_LEN 10


typedef struct {
  int64_t *settings;
  size_t length;
} setting_arr;

typedef struct score {
  char name[SCORE_LEN];
  uint16_t points;
} highscore;


uint8_t read_settings(char *settings_file, setting_arr set_arr);

uint8_t init_setting_arr(setting_arr *set_arr, size_t length);

void free_setting_arr(setting_arr set_arr);


uint8_t get_highscore(char *highscore_path, highscore *leader_board, size_t score_ammount);

#endif
