1 |
/* vsprintf with automatic memory allocation. |
/* vsprintf with automatic memory allocation. |
2 |
Copyright (C) 1999, 2002-2004 Free Software Foundation, Inc. |
Copyright (C) 1999, 2002-2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
13 |
|
|
14 |
You should have received a copy of the GNU General Public License along |
You should have received a copy of the GNU General Public License along |
15 |
with this program; if not, write to the Free Software Foundation, |
with this program; if not, write to the Free Software Foundation, |
16 |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
17 |
|
|
18 |
/* Tell glibc's <stdio.h> to provide a prototype for snprintf(). |
/* Tell glibc's <stdio.h> to provide a prototype for snprintf(). |
19 |
This must come before <config.h> because <config.h> may include |
This must come before <config.h> because <config.h> may include |
51 |
/* Checked size_t computations. */ |
/* Checked size_t computations. */ |
52 |
#include "xsize.h" |
#include "xsize.h" |
53 |
|
|
54 |
|
/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ |
55 |
|
#ifndef EOVERFLOW |
56 |
|
# define EOVERFLOW E2BIG |
57 |
|
#endif |
58 |
|
|
59 |
#ifdef HAVE_WCHAR_T |
#ifdef HAVE_WCHAR_T |
60 |
# ifdef HAVE_WCSLEN |
# ifdef HAVE_WCSLEN |
61 |
# define local_wcslen wcslen |
# define local_wcslen wcslen |