X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcmemory.h;h=ddcf8bc15b7f858202fcc0630b10a90af1c3ebd7;hp=7dc60062ef1b440c5e4af4f14048b5fe46504546;hb=f449c0a95327fd4e60a5b9d3c9d50fae0f8d835a;hpb=60180da59ffdbbd12058dded66e3c8a547cd0852 diff --git a/lib/silcutil/silcmemory.h b/lib/silcutil/silcmemory.h index 7dc60062..ddcf8bc1 100644 --- a/lib/silcutil/silcmemory.h +++ b/lib/silcutil/silcmemory.h @@ -44,7 +44,7 @@ * * Allocates memory of `size' bytes and returns pointer to the allocated * memory area. Free the memory by calling silc_free. Returns NULL on - * error. + * error and sets silc_errno. * ***/ void *silc_malloc(size_t size); @@ -60,7 +60,7 @@ void *silc_malloc(size_t size); * Allocates memory of for an array of `items' elements of `size' bytes * and returns pointer to the allocated memory area. The memory area is * also zeroed. Free the memory by calling silc_free. Returns NULL on - * error. + * error and sets silc_errno. * ***/ void *silc_calloc(size_t items, size_t size); @@ -127,7 +127,7 @@ void *silc_memdup(const void *ptr, size_t size); * DESCRIPTION * * Duplicates the string indicated by `str' and returns the duplicated - * string. Returns NULL on error. + * string. Returns NULL on error and sets silc_errno. * ***/ char *silc_strdup(const char *str);