fts_close()

close a file hierarchy 

Function


SYNOPSIS

#include <fts.h>

int fts_close(FTS *sp);


DESCRIPTION

The fts_close() function closes a file hierarchy. This function also restores the current directory to the directory from which fts_open() was originally called.


PARAMETERS

sp 

Represents the file hierarchy itself.


RETURN VALUES

The fts_close() function returns 0, if successful, and -1, if an error occurred. The fts_close() function may also set errno to any of the errors that chdir(), and close() specify.


CONFORMANCE

4.4BSD


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
chdir(), fts_children(), fts_open(), fts_read(), fts_set(), qsort(), stat()


PTC MKS Toolkit 10.5 Documentation Build 40.