www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/03/19:46:50

From: Jeff Weeks <pweeks AT execulink DOT com>
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: <B0000041677 AT datasoft DOT datasoft DOT com DOT br>
NNTP-Posting-Host: news.linkd.net
Mime-Version: 1.0
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/
--------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019