[openbeos] Re: find_directory()

  • From: "François Revol" <revol@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Tue, 05 Jul 2005 21:44:06 +0200 CEST

> "François Revol" <revol@xxxxxxx> wrote:
> > > "François Revol" <revol@xxxxxxx> wrote:
> > > > > The one in libroot.so looks better to me, as it is prepared 
> > > > > for 
> > > > > various things like different home directories, etc.
> > > > Yes, the C one is supposed to be the correct one. :p
> > > BTW why do you allocate another buffer? Why not just use the one 
> > > passed in?
> > Don't remember, I think it was so as not to have touched the passed 
> > buffer in case of error.
> 
> That's probably even a good reason, although it shouldn't matter too 
> much :)

Right, and seeing how much it's used everywhere (or should be sued 
everywhere ;), maybe we can afford to optimize the malloc out...

François.


Other related posts: