tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dirname(3) used on its own results?
> 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().
Home |
Main Index |
Thread Index |
Old Index