mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-26 03:13:42 +08:00
29 lines
652 B
C
29 lines
652 B
C
/* Written by Paul Eggert <eggert@twinsun.com> */
|
|
|
|
#if HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
|
|
#if HAVE_STDDEF_H
|
|
# include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
|
|
#endif
|
|
#include <sys/types.h>
|
|
#include <quotearg.h>
|
|
#include <quote.h>
|
|
|
|
/* Return an unambiguous printable representated, allocated in slot N,
|
|
for NAME, suitable for diagnostics. */
|
|
char const *
|
|
quote_n (int n, char const *name)
|
|
{
|
|
return quotearg_n_style (n, locale_quoting_style, name);
|
|
}
|
|
|
|
/* Return an unambiguous printable representation of NAME, suitable
|
|
for diagnostics. */
|
|
char const *
|
|
quote (char const *name)
|
|
{
|
|
return quote_n (0, name);
|
|
}
|