mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-28 04:21:17 +00:00
Use JSON, unifying settings.
This commit is contained in:
committed by
Christoffer Lerno
parent
fd82f9685f
commit
7226bff6ea
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user