Use JSON, unifying settings.

This commit is contained in:
Christoffer Lerno
2022-02-15 16:41:49 +01:00
committed by Christoffer Lerno
parent fd82f9685f
commit 7226bff6ea
26 changed files with 1070 additions and 2988 deletions

View File

@@ -8,6 +8,15 @@
#include "lib.h"
#include "stdio.h"
int str_in_list(const char *value, unsigned count, const char** elements)
{
for (unsigned i = 0; i < count; i++)
{
if (strcmp(value, elements[i]) == 0) return (int)i;
}
return -1;
}
char *strformat(const char *var, ...)
{
va_list list;