James wrote:

> -> i've picked 255 for no good reason, this sound sane?
> -
> -Nope. If you want to read the entire contents of a directory into
> -memory, you should either use linked lists, or realloc().
> 
> oh brill, yet another linked list :) is there anything that arrays are
> good for now?

Yep. When you know how large they need to be at compile time.

> i'll have a look at realloc().

realloc() is probably the better approach in this case.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to