delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/06/21:01:11

From: Clemens Valens <c DOT valens AT mindless DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Hmmm, weird problem...
Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here
X-Originating-Host: 195.154.148.69
X-Wren-Trace: cF94WE1fA3tDEQt9TxMeFhgMHwoADk0TCQYQDQ8SH18BAEoQAEoeHwIKAxQHRgxLEEVSXE0Oe3dTQhFSQBpYRBQcUVs=
Message-ID: <931161155.20731@www.remarq.com>
References: <377F7C68 DOT B7AA796B AT primus DOT com DOT au>
Lines: 11
Date: Sun, 04 Jul 1999 23:52:34 -0800
NNTP-Posting-Host: 10.0.3.195
X-Trace: WReNphoon3 931160912 10.0.3.195 (Mon, 05 Jul 1999 00:48:32 PDT)
NNTP-Posting-Date: Mon, 05 Jul 1999 00:48:32 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How do you initialize "tok"? Your code seems to work if you
initialize it to NULL for each token. Remember that realloc
tries to reallocate the same memory if possible. If it
can't it will allocate some other block. I am not sure if
it will copy data from the old block to the new block.

Clemens



**** Posted from RemarQ - http://www.remarq.com - Discussions Start Here (tm) ****

- Raw text -


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