]> git.cworth.org Git - tar/blob - gnu/quote.c
upstream: Fix extraction of device nodes.
[tar] / gnu / quote.c
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* quote.c - quote arguments for output
4
5    Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006, 2009, 2010 Free
6    Software Foundation, Inc.
7
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.
12
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.
17
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/>.  */
20
21 /* Written by Paul Eggert <eggert@twinsun.com> */
22
23 #include <config.h>
24
25 #include "quotearg.h"
26 #include "quote.h"
27
28 /* Return an unambiguous printable representation of NAME,
29    allocated in slot N, suitable for diagnostics.  */
30 char const *
31 quote_n (int n, char const *name)
32 {
33   return quotearg_n_style (n, locale_quoting_style, name);
34 }
35
36 /* Return an unambiguous printable representation of NAME,
37    suitable for diagnostics.  */
38 char const *
39 quote (char const *name)
40 {
41   return quote_n (0, name);
42 }