Changeset 609 for branches/GNU/src/binutils/libiberty/getcwd.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libiberty/getcwd.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 3 3 4 4 /* 5 NAME6 getcwd -- get absolute pathname for current working directory7 5 8 SYNOPSIS 9 char *getcwd (char pathname[len], len) 6 @deftypefn Supplemental char* getcwd (char *@var{pathname}, int @var{len}) 10 7 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. 8 Copy 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 11 directory'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}. 16 15 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 23 17 24 18 */ … … 47 41 getcwd (buf, len) 48 42 char *buf; 49 int len;43 size_t len; 50 44 { 51 45 char ourbuf[MAXPATHLEN]; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.