diff options
author | DJ Delorie <dj@redhat.com> | 2005-03-25 04:57:00 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-03-25 04:57:00 +0000 |
commit | 2c18521373dbb3c92bfbd3b980aff9c8c3270b50 (patch) | |
tree | 3784220a456a2fd1d903429db29a24f66f9c44db /include/libiberty.h | |
parent | 0f0595abd921e2593f780bec34a0d89e872be6ca (diff) | |
download | cygnal-2c18521373dbb3c92bfbd3b980aff9c8c3270b50.tar.gz cygnal-2c18521373dbb3c92bfbd3b980aff9c8c3270b50.tar.bz2 cygnal-2c18521373dbb3c92bfbd3b980aff9c8c3270b50.zip |
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index d2a8a0b9e..49a2fb6fd 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -255,6 +255,10 @@ extern PTR xcalloc PARAMS ((size_t, size_t)) ATTRIBUTE_MALLOC; extern char *xstrdup PARAMS ((const char *)) ATTRIBUTE_MALLOC; +/* Copy at most N characters from string into a buffer without fail. */ + +extern char *xstrndup PARAMS ((const char *, size_t)) ATTRIBUTE_MALLOC; + /* Copy an existing memory buffer to a new memory buffer without fail. */ extern PTR xmemdup PARAMS ((const PTR, size_t, size_t)) ATTRIBUTE_MALLOC; |