diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-09-01 07:44:49 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-09-01 07:44:49 -0700 |
commit | 8666506ecd6b1a90c7c66fb4b6051e90fba20c30 (patch) | |
tree | 5f853c76e609cf303965e7cd7eb361e011e98641 /src/doprnt.c | |
parent | 726cfaae869af4f678e26ace56d7dc42676bc299 (diff) | |
download | emacs-8666506ecd6b1a90c7c66fb4b6051e90fba20c30.tar.gz |
* src/doprnt.c (esnprintf): Remove. All uses removed.
Suggested by Chong Yidong in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9412#23>.
Diffstat (limited to 'src/doprnt.c')
-rw-r--r-- | src/doprnt.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/doprnt.c b/src/doprnt.c index dae1dab04d7..638fa4d6312 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -486,27 +486,6 @@ esprintf (char *buf, char const *format, ...) return nbytes; } -/* Format to a buffer BUF of positive size BUFSIZE. This is like - snprintf, except it is not limited to returning an 'int' so it - doesn't have a silly 2 GiB limit on typical 64-bit hosts. However, - it is limited to the Emacs-style formats that doprnt supports, and - BUFSIZE must be positive. - - Return the number of bytes put into BUF, excluding the terminating - '\0'. Unlike snprintf, always return a nonnegative value less than - BUFSIZE; if the output is truncated, return BUFSIZE - 1, which is - the length of the truncated output. */ -ptrdiff_t -esnprintf (char *buf, ptrdiff_t bufsize, char const *format, ...) -{ - ptrdiff_t nbytes; - va_list ap; - va_start (ap, format); - nbytes = doprnt (buf, bufsize, format, 0, ap); - va_end (ap); - return nbytes; -} - /* Format to buffer *BUF of positive size *BUFSIZE, reallocating *BUF and updating *BUFSIZE if the buffer is too small, and otherwise behaving line esprintf. When reallocating, free *BUF unless it is |