From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Using Pointers ? Date: Mon, 03 Feb 1997 15:14:00 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 17 Message-ID: <32F67138.D72@cs.com> References: <32F662F9 DOT 1F3B AT post DOT comstar DOT ru> <32F66FB9 DOT 1FC2 AT cs DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp208.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp John M. Aldrich wrote: > > > ptr->fld1=fld1; > > ptr->fld2=fld2 Gods... I replied too soon again. Today is obviously not my day for alertness. :) When you add these lines, the third function is likely to be marginally faster. It will be even better if you declare 'fld1' and 'fld2' as 'register' variables. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Call me for your free AOL disk! | http://www.cs.com/fighteer | | Chain letters, work-at-home schemes, free long distance, etc., | | are ILLEGAL! Keep the Internet litter-free... don't SPAM. | ---------------------------------------------------------------------