From 550a452249c7cbb9c1c03bb4f5904bec2c841e9a Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 10 Dec 2024 17:42:45 +0100 Subject: [PATCH] modified: src/db.c --- src/db.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/db.c b/src/db.c index 37c1f89..f3de444 100644 --- a/src/db.c +++ b/src/db.c @@ -2,3 +2,23 @@ * databse * stores current state and reads previous */ + +#include + +const char format[] = "{ %s = { %s}\n"; +struct A { + char *s1; + char *s2; +}A; +int main(){ + +struct A test; + + test.s1 = "asdasd"; + test.s2 = "asdad"; + + +printf(format, test.s1, test.s2); + + +}