vm: use assert() instead of vm_assert(); remove vm_assert().
[minix.git] / man / man3 / dirname.3
blob30c9c0a96bcb77130d9fcf1c0d13de3c76841434
1 .TH DIRNAME 3
2 .SH NAME
3 dirname \- determine name of containing directory
4 .SH SYNOPSIS
5 .nf
6 .ft B
7 #include <libgen.h>
9 char *dirname(char *\fIpath\fP);
10 .SH DESCRIPTION
11 The dirname function returns the name of the directory containing \fIpath\fP.
12 If the path does not contain slashes, the string "." is returned. Trailing 
13 slashes are ignored.
14 .SH "SEE ALSO"
15 .BR basename (3).
16 .SH NOTES
17 This function may, but need not, overwrite the buffer passed to it.
18 Although MINIX' implementation of this function is re-entrant, POSIX does not
19 guarantee this property and portable programs should not rely on it.