about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-18 21:54:11 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-18 21:54:11 +0000
commit1829f708c013f5631f4ea2fa66131e5fda9b633f (patch)
treea1d2f9cc7d94c49372c3db27efdcdb2f2c56328a /lib
parent13ab3a5df9112d36582eff79ec931ba0fddb6902 (diff)
downloadnetpbm-mirror-1829f708c013f5631f4ea2fa66131e5fda9b633f.tar.gz
netpbm-mirror-1829f708c013f5631f4ea2fa66131e5fda9b633f.tar.xz
netpbm-mirror-1829f708c013f5631f4ea2fa66131e5fda9b633f.zip
Fix comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4417 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/util/nstring.c31
1 files changed, 5 insertions, 26 deletions
diff --git a/lib/util/nstring.c b/lib/util/nstring.c
index 1b72d344..00da4f35 100644
--- a/lib/util/nstring.c
+++ b/lib/util/nstring.c
@@ -1,9 +1,9 @@
-/*
- * snprintf.c - a portable implementation of snprintf
- *
+/*=============================================================================
+                               nstring.c
+===============================================================================
 
    THIS MODULE WAS ADAPTED FOR NETPBM BY BRYAN HENDERSON ON 2002.03.24.
-   Bryan got the base from
+   Bryan got the base snprintf.c from
    http://www.ijs.si/software/snprintf/snprintf-2.2.tar.gz, but made
    a lot of changes and additions.
    The code from ww.ijs.si was written by
@@ -83,28 +83,7 @@
  * For historical discussion on changes in the semantics and standards
  * of snprintf see printf(3) man page in the Linux programmers manual.
  *
- * Routines asprintf and vasprintf return a pointer (in the ptr argument)
- * to a buffer sufficiently large to hold the resulting string. This pointer
- * should be passed to free(3) to release the allocated storage when it is
- * no longer needed. If sufficient space cannot be allocated, these functions
- * will return -1 and set ptr to be a NULL pointer. These two routines are a
- * GNU C library extensions (glibc).
- *
- * Routines asnprintf and vasnprintf are similar to asprintf and vasprintf,
- * yet, like snprintf and vsnprintf counterparts, will write at most str_m-1
- * characters into the allocated output string, the last character in the
- * allocated buffer then gets the terminating null. If the formatted string
- * length (the return value) is greater than or equal to the str_m argument,
- * the resulting string was truncated and some of the formatted characters
- * were discarded. These routines present a handy way to limit the amount
- * of allocated memory to some sane value.
- *
- * AVAILABILITY
- *   http://www.ijs.si/software/snprintf/
- *
- */
-
-
+=============================================================================*/
 #define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 #define _BSD_SOURCE  /* Make sure strdup() is in string.h */