view lib/quote.c @ 2880:2a7e5d634dca

*** empty log message ***
author Jim Meyering <jim@meyering.net>
date Mon, 25 Sep 2000 00:01:22 +0000
parents 2326ac681ccc
children 52fd2a48203c
line wrap: on
line source

/* Written by Paul Eggert <eggert@twinsun.com> */

#if HAVE_CONFIG_H
# include <config.h>
#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);
}