Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/getcwd.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    33
    44/*
    5 NAME
    6         getcwd -- get absolute pathname for current working directory
    75
    8 SYNOPSIS
    9         char *getcwd (char pathname[len], len)
     6@deftypefn Supplemental char* getcwd (char *@var{pathname}, int @var{len})
    107
    11 DESCRIPTION
    12         Copy the absolute pathname for the current working directory into
    13         the supplied buffer and return a pointer to the buffer.  If the
    14         current directory's path doesn't fit in LEN characters, the result
    15         is NULL and errno is set.
     8Copy the absolute pathname for the current working directory into
     9@var{pathname}, which is assumed to point to a buffer of at least
     10@var{len} bytes, and return a pointer to the buffer.  If the current
     11directory's path doesn't fit in @var{len} characters, the result is
     12@code{NULL} and @code{errno} is set.  If @var{pathname} is a null pointer,
     13@code{getcwd} will obtain @var{len} bytes of space using
     14@code{malloc}.
    1615
    17         If pathname is a null pointer, getcwd() will obtain size bytes of
    18         space using malloc.
    19 
    20 BUGS
    21         Emulated via the getwd() call, which is reasonable for most
    22         systems that do not have getcwd().
     16@end deftypefn
    2317
    2418*/
     
    4741getcwd (buf, len)
    4842  char *buf;
    49   int len;
     43  size_t len;
    5044{
    5145  char ourbuf[MAXPATHLEN];
Note: See TracChangeset for help on using the changeset viewer.