BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kremove_dir - remove a directory and it's contents

LIBRARY CALL

int kremove_dir(
   const char *path)

INPUT

OUTPUT

none

RETURN VALUE

0 on success and -1 on failure

DESCRIPTION

This routine removes a specified path. If it is a directory, it recursively calls itself on all pathnames under it.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

Hard links to other directory trees are not recognized by this routine, so if a hard link exists to a directory, it will follow it as a normal directory.

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/dir.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.