Re: need help with proof of concept code

2004-09-22 Thread Konrad Rzeszutek
The main problem is that you are copying the pointer values of result readdir is giving you. And the pointer points to the string value, which changes everytime read-dir is invoked. Look below for a fix: On Tuesday 21 September 2004 11:35 am, Bruce Shaw wrote: > I'm working on the partitions p

Re: need help with proof of concept code

2004-09-22 Thread Coders
On Tue, 21 Sep 2004 09:35:12 -0600 Bruce wrote: BS> char dname[21]; BS> unlink(dname); As you discovered, unlink is for deleting file. You were probably thinking of free(), which frees memory. But you don't need that either, since dname is a an global array , not an allocated one. BS> When I

RE: need help with proof of concept code

2004-09-21 Thread Bruce Shaw
Title: RE: need help with proof of concept code Found one problem anyway... >    unlink(dname); Bad news.  I thought I was decoupling memory (no, I have no idea what I mean by that).  Actually, I was deleting the link. This communication is intended for the use of the recipient