diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2009-08-05 16:50:48 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2009-08-05 16:50:48 +0000 |
commit | 4258e29cb74d684adfb655ac515fc6834d2e140a (patch) | |
tree | 5383d1e353275295e92bd59f96f4a0f7cb8bc862 | |
parent | c8f608f4c4c6d2eb6cb7b12cb60de04cadcb3750 (diff) | |
download | fetchmail-4258e29cb74d684adfb655ac515fc6834d2e140a.tar.gz fetchmail-4258e29cb74d684adfb655ac515fc6834d2e140a.tar.bz2 fetchmail-4258e29cb74d684adfb655ac515fc6834d2e140a.zip |
Extend documentation, add license.
svn path=/branches/BRANCH_6-3/; revision=5391
-rw-r--r-- | sdump.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,12 @@ -/* sdump.c -- library to allocate a printable version of a string */ +/* sdump.c -- library to allocate and format a printable version of a + * string with embedded NUL */ + /** \file sdump.c * \author Matthias Andree * \date 2009 + * + * This file is available under the GNU Lesser General Public License + * v2.1 or any later version of the GNU LGPL. */ #include <ctype.h> /* for isprint() */ @@ -14,7 +19,9 @@ /** sdump converts a byte string \a in of size \a len into a printable * string and returns a pointer to the memory region. * \returns a pointer to a xmalloc()ed string that the caller must - * free() after use. This function causes program abort on failure. */ + * free() after use. This function causes program abort on failure + * through xmalloc. xmalloc is a function that calls malloc() and aborts + * the program if malloc() returned NULL i. e. failure. */ char *sdump(const char *in, size_t len) { size_t outlen = 0, i; |