@c ----------------------------------------------------------------------
@node rmdir, file system
@heading @code{rmdir}
@subheading Syntax

@example
#include <osfcn.h>

int rmdir(const char *dirname);
@end example

@subheading Description

This function removes directory @var{dirname}.  The directory must be
empty. 

@subheading Return Value

Zero if the directory was removed, nonzero on failure.

@subheading Example

@example
rmdir("/tmp/datadir");
@end example


