1169695Skan/* quote.c - quote arguments for output 2169695Skan 3169695Skan Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006 Free 4169695Skan Software Foundation, Inc. 5169695Skan 6169695Skan This program is free software; you can redistribute it and/or modify 7169695Skan it under the terms of the GNU General Public License as published by 8169695Skan the Free Software Foundation; either version 2, or (at your option) 9169695Skan any later version. 10169695Skan 11169695Skan This program is distributed in the hope that it will be useful, 12169695Skan but WITHOUT ANY WARRANTY; without even the implied warranty of 13169695Skan MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14169695Skan GNU General Public License for more details. 15169695Skan 16169695Skan You should have received a copy of the GNU General Public License 17169695Skan along with this program; if not, write to the Free Software Foundation, 18169695Skan Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 19169695Skan 20169695Skan/* Written by Paul Eggert <eggert@twinsun.com> */ 21169695Skan 22169695Skan#include <config.h> 23169695Skan 24169695Skan#include "quotearg.h" 25169695Skan#include "quote.h" 26169695Skan 27169695Skan/* Return an unambiguous printable representation of NAME, 28169695Skan allocated in slot N, suitable for diagnostics. */ 29169695Skanchar const * 30169695Skanquote_n (int n, char const *name) 31169695Skan{ 32169695Skan return quotearg_n_style (n, locale_quoting_style, name); 33169695Skan} 34169695Skan 35169695Skan/* Return an unambiguous printable representation of NAME, 36169695Skan suitable for diagnostics. */ 37169695Skanchar const * 38169695Skanquote (char const *name) 39169695Skan{ 40169695Skan return quote_n (0, name); 41169695Skan} 42169695Skan