home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / unistd / getwd.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  399 b   |  26 lines

  1. @node getwd, file system
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <unistd.h>
  6.  
  7. char *getwd(char *buffer);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. Get the current directory and put it in @var{buffer}.  The return value
  13. includes the drive specifier. 
  14.  
  15. @subheading Return Value
  16.  
  17. @var{buffer} is returned.
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. char buf[PATH_MAX];
  23. getwd(buf);
  24. @end example
  25.  
  26.