1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* quote.c - quote arguments for output
5 Copyright (C) 1998-2001, 2003, 2005-2006, 2009-2011 Free Software
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 /* Written by Paul Eggert <eggert@twinsun.com> */
28 /* Return an unambiguous printable representation of NAME,
29 allocated in slot N, suitable for diagnostics. */
31 quote_n (int n
, char const *name
)
33 return quotearg_n_style (n
, locale_quoting_style
, name
);
36 /* Return an unambiguous printable representation of NAME,
37 suitable for diagnostics. */
39 quote (char const *name
)
41 return quote_n (0, name
);