diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-04-16 02:56:46 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-04-16 02:56:46 +0000 |
commit | 029bcc09d2da80641ce5dedfd03798f228c77ad0 (patch) | |
tree | a9ee898f20b8dd42fa0501e1949b517b75c8e2fa /libiberty/functions.texi | |
parent | 6a1b7acd5550bde90919afeb07e15889601886f7 (diff) | |
download | gcc-029bcc09d2da80641ce5dedfd03798f228c77ad0.zip gcc-029bcc09d2da80641ce5dedfd03798f228c77ad0.tar.gz gcc-029bcc09d2da80641ce5dedfd03798f228c77ad0.tar.bz2 |
mempcpy.c, [...]: New files.
* mempcpy.c, stpcpy.c, stpncpy.c: New files.
* configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
and stpncpy.
* Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
(CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
Regenerate dependencies.
* functions.texi, configure, config.in: Regenerated.
From-SVN: r65674
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r-- | libiberty/functions.texi | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi index 2c7b9e1..bb35549 100644 --- a/libiberty/functions.texi +++ b/libiberty/functions.texi @@ -398,7 +398,7 @@ and a path ending in @code{/} returns the empty string after it. Given a pointer to a string containing a pathname, returns a canonical version of the filename. Symlinks will be resolved, and ``.'' and ``..'' components will be simplified. The returned value will be allocated using -@code{xmalloc} or @code{malloc}. +@code{malloc}, or @code{NULL} will be returned on a memory allocation error. @end deftypefn @@ -476,6 +476,14 @@ Copies @var{count} bytes from memory area @var{from} to memory area @end deftypefn +@c mempcpy.c:23 +@deftypefn Supplemental void* mempcpy (void *@var{out}, const void *@var{in}, size_t @var{length}) + +Copies @var{length} bytes from memory region @var{in} to region +@var{out}. Returns a pointer to @var{out} + @var{length}. + +@end deftypefn + @c memset.c:6 @deftypefn Supplemental void* memset (void *@var{s}, int @var{c}, size_t @var{count}) @@ -674,6 +682,24 @@ valid until at least the next call. @end deftypefn +@c stpcpy.c:23 +@deftypefn Supplemental char* stpcpy (char *@var{dst}, const char *@var{src}) + +Copies the string @var{src} into @var{dst}. Returns a pointer to +@var{dst} + strlen(@var{src}). + +@end deftypefn + +@c stpncpy.c:23 +@deftypefn Supplemental char* stpncpy (char *@var{dst}, const char *@var{src}, size_t @var{len}) + +Copies the string @var{src} into @var{dst}, copying exactly @var{len} +and padding with zeros if necessary. If @var{len} < strlen(@var{src}) +then return @var{dst} + @var{len}, otherwise returns @var{dst} + +strlen(@var{src}). + +@end deftypefn + @c strcasecmp.c:15 @deftypefn Supplemental int strcasecmp (const char *@var{s1}, const char *@var{s2}) |