www.delorie.com/djgpp/doc/libc/libc_305.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

fchdir

Syntax

 
#include <unistd.h>

int fchdir(int fd);

Description

This function changes the current directory to the directory described by the file descriptor fd.

Return Value

Zero on success, else nonzero and errno set if error.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001

Example

 
int fd;

fd = open("dir", O_RDONLY);
fchdir(fd);

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004