Edgar =?iso-8859-1?B?RnXf?= wrote:

> > or are we restricted by some standard from having dirname(3)
> > be able to be called on the results of a previous dirname(3) call
> Not exactly restricted from, but
>       This is not strictly a bug; it is explicitly allowed by 
>       IEEE Std 1003.1-2001 (``POSIX.1'').
>
> > in which case we should document this in the manpage?
>       The dirname() function returns a pointer to static storage 
>       that may be overwritten by subsequent calls to dirname().

I agree with that part of the manpage.  But there's nothing in that
bit that implies (to me!) "You can't subsequently call dirname(3) on
the results of a previous call to dirname(3)".

Cheers,
Simon.

Reply via email to