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

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

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.

Portability

ANSI/ISO C No
POSIX No

Example

 
char buf[PATH_MAX];
getwd(buf);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004