From: Jeff Weeks Newsgroups: comp.os.msdos.djgpp Subject: Re: pointer trouble... need help Date: 3 Mar 1997 22:54:48 GMT Organization: Internet News Service Lines: 22 Message-ID: <5ffkro$gu2@nr1.toronto.istar.net> References: NNTP-Posting-Host: news.linkd.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit XPident: Unknown To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > > and now I want to copy the values from bbuf to tbuf. The following > > should work shouldn't it? > > > > tbuf = bbuf; > > try *tbuf = *bbuf; > > this way you'll referencing the values stored at the memory locations > instead of the memory location. Actually, that's what I wanted to do :) It turns out I had it right, except that I had to swap tbuf and bbuf pointers. It works now. Jeff Weeks -------------------------------------------- - Code X Software - Programming to a Higher Power email: mailto:pweeks AT execulink DOT com web: http://www.execulink.com/~pweeks/ --------------------------------------------