code_junkie

How to preserve stack space with good design?

Nov 11th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. foo(int a, int b, int c, int d)
  2. {
  3. ...
  4. bar(int a, int b);
  5. }
  6.  
  7. struct my_params {
  8. int a;
  9. int b;
  10. int c;
  11. int d;
  12. };
  13. foo(struct my_params* p)
  14. {
  15. ...
  16. bar(p);
  17. };
Add Comment
Please, Sign In to add comment