string dirname(char *str
)
dirname
creates a string that consists of all
but the last level of the pathname specified by
str
. The returned string is allocated
out of scratch memory, and is therefore valid only for the
duration of the clause. If insufficient scratch space is
available, dirname
does not execute and an
error is generated.