delorie.com/archives/browse.cgi | search |
From: | Vic <tudor AT cam DOT org> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: passing a structure?? |
Date: | Wed, 12 Aug 1998 21:51:56 -0400 |
Organization: | Communications Accessibles Montreal, Quebec Canada |
Lines: | 11 |
Message-ID: | <35D246BC.BF1@cam.org> |
References: | <35D21F2A DOT FA2A98F2 AT xyz DOT net> <6qtfo5$5nd$1 AT toad DOT stack DOT nl> |
NNTP-Posting-Host: | dialup-578.hip.cam.org |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Mark van der Aalst wrote: > /* pass by value (generally slower) */ > > void my_funcie2(foo_t foo) > { > foo.blah = 12; > } also, NOT the best thing you could do. being a parameter, your struct goes on the stack, and if it's too big and your stack overflows, kaboom! no more program.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |