1837edd6bSchristos /* Estimate the length of the string generated by a vprintf-like 2837edd6bSchristos function. Use by vasprintf and xvasprintf. 3*7e120ff0Schristos Copyright (C) 1994-2024 Free Software Foundation, Inc. 4837edd6bSchristos 5837edd6bSchristos This file is part of the libiberty library. 6837edd6bSchristos Libiberty is free software; you can redistribute it and/or 7837edd6bSchristos modify it under the terms of the GNU Library General Public 8837edd6bSchristos License as published by the Free Software Foundation; either 9837edd6bSchristos version 2 of the License, or (at your option) any later version. 10837edd6bSchristos 11837edd6bSchristos Libiberty is distributed in the hope that it will be useful, 12837edd6bSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 13837edd6bSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14837edd6bSchristos Library General Public License for more details. 15837edd6bSchristos 16837edd6bSchristos You should have received a copy of the GNU Library General Public 17837edd6bSchristos License along with libiberty; see the file COPYING.LIB. If not, write 18837edd6bSchristos to the Free Software Foundation, Inc., 51 Franklin Street - Fifth 19837edd6bSchristos Floor, Boston, MA 02110-1301, USA. */ 20837edd6bSchristos 21837edd6bSchristos 22837edd6bSchristos extern int libiberty_vprintf_buffer_size (const char *, va_list); 23