2024-12-09 19:27:50 +01:00
|
|
|
/*
|
|
|
|
* databse
|
|
|
|
* stores current state and reads previous
|
|
|
|
*/
|
2024-12-10 17:42:45 +01:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
}
|