I have some code like
I want to call func2 from func1, but how do I convert foo* into foo?Code:struct mystruct { int stuff; etc... }; typedef mystruct foo; func2(foo a) { } func1(foo *a) { } main() { foo a; func1(&a); }
I have some code like
I want to call func2 from func1, but how do I convert foo* into foo?Code:struct mystruct { int stuff; etc... }; typedef mystruct foo; func2(foo a) { } func1(foo *a) { } main() { foo a; func1(&a); }