Unix Programming - Re: dirname return value

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2006 > Re: dirname return value





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: dirname return value
Barry Margolin

2006-07-04, 1:29 am

In article <1151969314.467377.214100@m79g2000cwm.googlegroups.com>,
"spibou@gmail.com" <spibou@gmail.com> wrote:

> Ian Zimmerman wrote:
>
>
> What do you mean "dispose of" ? If you mean call free() on it then
> don't. If you were allowed to do that I expect that the man page
> would say so.


Or to put it another way, since it says it MAY use static storage, and
there's no way to find out whether it did or didn't, for safety you have
to assume it's static and not freeable.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com