*** empty log message ***
[gnulib.git] / lib / quote.c
blob0ce935cb20a587cb43050c5ad57788cfdff24e0f
1 /* Written by Paul Eggert <eggert@twinsun.com> */
3 #if HAVE_CONFIG_H
4 # include <config.h>
5 #endif
7 #if HAVE_STDDEF_H
8 # include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
9 #endif
10 #include <sys/types.h>
11 #include <quotearg.h>
12 #include <quote.h>
14 /* Return an unambiguous printable representated, allocated in slot N,
15 for NAME, suitable for diagnostics. */
16 char const *
17 quote_n (int n, char const *name)
19 return quotearg_n_style (n, locale_quoting_style, name);
22 /* Return an unambiguous printable representation of NAME, suitable
23 for diagnostics. */
24 char const *
25 quote (char const *name)
27 return quote_n (0, name);