diff options
author | Dave Beckett <dave@dajobe.org> | 2012-02-20 10:55:11 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2012-03-06 20:46:49 -0800 |
commit | 1b5eb6f03f4cf97c12b9e7231f82e7a853a9c24c (patch) | |
tree | fd5ea299645f9d1f26b35c1f5ee9f4ff71759af1 /src/snprintf.c | |
parent | 4781dc8535c6dbd7b64e666959cdc275be10ec46 (diff) | |
download | raptor-1b5eb6f03f4cf97c12b9e7231f82e7a853a9c24c.tar.gz |
(raptor_format_integer): Return size_t for this internal function.
Diffstat (limited to 'src/snprintf.c')
-rw-r--r-- | src/snprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/snprintf.c b/src/snprintf.c index 4f57b515..2a4aee9f 100644 --- a/src/snprintf.c +++ b/src/snprintf.c @@ -289,13 +289,13 @@ static const char digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; * If @buffer is NULL or the @bufsize is too small, the number of * bytes needed (excluding NUL) is returned and no formatting is done. * - * Return value: number of bytes needed or written (excluding NUL) + * Return value: number of bytes needed or written (excluding NUL) or 0 on failure */ -int +size_t raptor_format_integer(char* buffer, size_t bufsize, int integer, unsigned int base, int width, char padding) { - int len = 1; + size_t len = 1; char *p; unsigned int value; |