asm_book/section_1/funcs/foo2.c
Perry Kivolowitz 5e63912d39 file_ops begun
2022-12-25 14:53:15 -06:00

18 lines
230 B
C

#include <stdio.h>
struct Foo {
int a[256];
};
struct Foo FooMaker() {
struct Foo f;
for (int i = 0; i < 256; i++) {
f.a[i] = i;
}
return f;
}
void CallFooMaker() {
struct Foo f = FooMaker();
printf("%d\n", f.a[0]);
}