From: ams AT ludd DOT luth DOT se (Martin Str|mberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: question on structures Date: 11 Jul 1998 00:29:06 GMT Organization: University of Lulea, Sweden Lines: 18 Message-ID: <6o6bki$c5s$1@news.luth.se> References: <6o63dl$ojc$1 AT ash DOT prod DOT itd DOT earthlink DOT net> NNTP-Posting-Host: my21.sm.luth.se To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Jason Nehf (zolaar AT earthlink DOT net) wrote: : How would I pass a structure in a function, then have the function change : the values in the structure? I know with regular variables, you just pass : them by putting a '&' in front of the variable, but is there an equivilant : with structures? Specifically, I'm trying to pass a structure with all of a : RPG character's attributes (hitpoints, strength, dexterity, etc), and have : it accelerate the character to a specific level. I know i could, instead of : passing a structure, pass each variable individually, but that is a LOT of : work that could be saved by passing a structure. Any help would be greatly : appreciated! Have you tried putting a '&' in front of the variable that is declared with a structure type...? Pink Floyd, Wish You Were Here, MartinS