2023-09-12 17:16:13 +02:00
|
|
|
#include "test.h"
|
2023-09-12 18:21:59 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2023-09-12 17:16:13 +02:00
|
|
|
|
|
|
|
int ret19() {
|
|
|
|
return 19;
|
|
|
|
}
|
2023-09-12 18:21:59 +02:00
|
|
|
|
|
|
|
char* structInfo(MyStruct *st) {
|
|
|
|
char* buf = malloc(1024*sizeof(char));
|
2023-09-12 18:45:10 +02:00
|
|
|
sprintf(buf,
|
|
|
|
"Infos about the struct:\n"
|
|
|
|
"\tfoo:\t%d\n"
|
|
|
|
"\tbar:\t%c\n"
|
|
|
|
"\n"
|
|
|
|
"greetings from C"
|
|
|
|
,
|
|
|
|
st->foo,
|
|
|
|
st->bar
|
|
|
|
);
|
2023-09-12 18:21:59 +02:00
|
|
|
|
|
|
|
return buf;
|
|
|
|
}
|