1162852Sdes/* quote.c - quote arguments for output
276259Sgreen
376259Sgreen   Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006, 2009, 2010 Free
476259Sgreen   Software Foundation, Inc.
576259Sgreen
676259Sgreen   This program is free software: you can redistribute it and/or modify
776259Sgreen   it under the terms of the GNU General Public License as published by
876259Sgreen   the Free Software Foundation; either version 3 of the License, or
976259Sgreen   (at your option) any later version.
1076259Sgreen
1176259Sgreen   This program is distributed in the hope that it will be useful,
1276259Sgreen   but WITHOUT ANY WARRANTY; without even the implied warranty of
1376259Sgreen   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1476259Sgreen   GNU General Public License for more details.
1576259Sgreen
1676259Sgreen   You should have received a copy of the GNU General Public License
1776259Sgreen   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
1876259Sgreen
1976259Sgreen/* Written by Paul Eggert <eggert@twinsun.com> */
2076259Sgreen
21146998Sdes#include <config.h>
22146998Sdes
23146998Sdes#include "quotearg.h"
2476259Sgreen#include "quote.h"
2576259Sgreen
2676259Sgreen/* Return an unambiguous printable representation of NAME,
2776259Sgreen   allocated in slot N, suitable for diagnostics.  */
2876259Sgreenchar const *
2976259Sgreenquote_n (int n, char const *name)
3076259Sgreen{
3176259Sgreen  return quotearg_n_style (n, locale_quoting_style, name);
3276259Sgreen}
3376259Sgreen
3476259Sgreen/* Return an unambiguous printable representation of NAME,
35137015Sdes   suitable for diagnostics.  */
36137015Sdeschar const *
3776259Sgreenquote (char const *name)
3876259Sgreen{
3976259Sgreen  return quote_n (0, name);
4076259Sgreen}
4176259Sgreen