X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsh-quote.h;h=8615275c981b8e33075f54701b01fe0ac6ff2617;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=339a7c63f6005d939f0b97d0079c111f757c3579;hpb=d599e5add275f75ed08e6527b8ee4d3f4f7c3aea;p=gnulib.git diff --git a/lib/sh-quote.h b/lib/sh-quote.h index 339a7c63f..8615275c9 100644 --- a/lib/sh-quote.h +++ b/lib/sh-quote.h @@ -1,5 +1,5 @@ /* Shell quoting. - Copyright (C) 2001-2002, 2004, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2004, 2009-2014 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -15,12 +15,19 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifndef _SH_QUOTE_H +#define _SH_QUOTE_H + /* When passing a command to a shell, we must quote the program name and arguments, since Unix shells interpret characters like " ", "'", "<", ">", - "$" etc. in a special way. */ + "$", '*', '?' etc. in a special way. */ #include +#ifdef __cplusplus +extern "C" { +#endif + /* Returns the number of bytes needed for the quoted string. */ extern size_t shell_quote_length (const char *string); @@ -33,4 +40,10 @@ extern char * shell_quote (const char *string); /* Returns a freshly allocated string containing all argument strings, quoted, separated through spaces. */ -extern char * shell_quote_argv (char **argv); +extern char * shell_quote_argv (char * const *argv); + +#ifdef __cplusplus +} +#endif + +#endif /* _SH_QUOTE_H */