Lines Matching refs:string
23 #include <string.h>
39 /* Returns the number of bytes needed for the quoted string. */
41 shell_quote_length (const char *string)
45 return quotearg_buffer (NULL, 0, string, strlen (string),
49 /* Copies the quoted string to p and returns the incremented p.
50 There must be room for shell_quote_length (string) + 1 bytes at p. */
52 shell_quote_copy (char *p, const char *string)
56 return p + quotearg_buffer (p, (size_t)(-1), string, strlen (string),
60 /* Returns the freshly allocated quoted string. */
62 shell_quote (const char *string)
66 return quotearg_alloc (string, strlen (string), sh_quoting_options);
69 /* Returns a freshly allocated string containing all argument strings, quoted,