Files
C_C++
Haskell
Java
LaTeX
Misc.
avalonia_hw
bash_history_abuse
cmdtest
cross_compile
Makefile
main.f95
thing.c
gdb_pretty_print
my_git_repo
rasterpython_eremias++
bind_test.sh
elif_problem.eax
example.m4
extension_cut.Makefile
fizzbuzz.f90
gitea_mass_create.sh
guards.hs
strategy.cs
test.info
test.texi
top_level.cs
Python
Vim
Webdev
git
.gitignore
Makefile
tests/Misc./cross_compile/thing.c
2024-03-10 16:02:52 +01:00

22 lines
234 B
C

typedef struct {
int i;
int h;
} thing;
int queryi(thing t){
return t.i;
}
int queryh(thing t){
return t.h;
}
thing * newthing(){
thing * t = (thing *)malloc(sizeof(thing));
*t = (thing){
.i = 0,
.h = 0,
};
return t;
}