X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsh-quote.h;h=d08502d1cc0680b12f3151825ca448ef7a7b9157;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=a5515d791042548528ddf2f4a651254ca0316cab;hpb=7d6f40656fa05ddc91ed194a455b96320cf94721;p=gnulib.git diff --git a/lib/sh-quote.h b/lib/sh-quote.h index a5515d791..d08502d1c 100644 --- a/lib/sh-quote.h +++ b/lib/sh-quote.h @@ -1,5 +1,5 @@ /* Shell quoting. - Copyright (C) 2001-2002, 2004, 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2004, 2009-2013 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); @@ -34,3 +41,9 @@ 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 * const *argv); + +#ifdef __cplusplus +} +#endif + +#endif /* _SH_QUOTE_H */