Mercurial > hg > CbC > CbC_gcc
comparison libiberty/vsnprintf.c @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Implement the vsnprintf function. | 1 /* Implement the vsnprintf function. |
2 Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. | 2 Copyright (C) 2003, 2004, 2005, 2011 Free Software Foundation, Inc. |
3 Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>. | 3 Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>. |
4 | 4 |
5 This file is part of the libiberty library. This library is free | 5 This file is part of the libiberty library. This library is free |
6 software; you can redistribute it and/or modify it under the | 6 software; you can redistribute it and/or modify it under the |
7 terms of the GNU General Public License as published by the | 7 terms of the GNU General Public License as published by the |
23 This exception does not however invalidate any other reasons why | 23 This exception does not however invalidate any other reasons why |
24 the executable file might be covered by the GNU General Public License. */ | 24 the executable file might be covered by the GNU General Public License. */ |
25 | 25 |
26 /* | 26 /* |
27 | 27 |
28 @deftypefn Supplemental int vsnprintf (char *@var{buf}, size_t @var{n}, const char *@var{format}, va_list @var{ap}) | 28 @deftypefn Supplemental int vsnprintf (char *@var{buf}, size_t @var{n}, @ |
29 const char *@var{format}, va_list @var{ap}) | |
29 | 30 |
30 This function is similar to @code{vsprintf}, but it will write to | 31 This function is similar to @code{vsprintf}, but it will write to |
31 @var{buf} at most @code{@var{n}-1} bytes of text, followed by a | 32 @var{buf} at most @code{@var{n}-1} bytes of text, followed by a |
32 terminating null byte, for a total of @var{n} bytes. On error the | 33 terminating null byte, for a total of @var{n} bytes. On error the |
33 return value is -1, otherwise it returns the number of characters that | 34 return value is -1, otherwise it returns the number of characters that |