www.delorie.com/djgpp/doc/libc-2.01/libc_355.html   search  
Go to the first, previous, next, last section, table of contents.


getwd

Syntax

#include <unistd.h>

char *getwd(char *buffer);

Description

Get the current directory and put it in buffer. The return value includes the drive specifier.

Return Value

buffer is returned.

Example

char buf[PATH_MAX];
getwd(buf);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997