diff options
Diffstat (limited to 'support/support.h')
-rw-r--r-- | support/support.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/support/support.h b/support/support.h index 9418cd1..835e717 100644 --- a/support/support.h +++ b/support/support.h @@ -69,6 +69,11 @@ void support_write_file_string (const char *path, const char *contents); the result). */ char *support_quote_blob (const void *blob, size_t length); +/* Quote the contents of the at STR, in such a way that the result + string can be included in a C literal (in single/double quotes, + without putting the quotes into the result). */ +char *support_quote_string (const char *str); + /* Returns non-zero if the file descriptor is a regular file on a file system which supports holes (that is, seeking and writing does not allocate storage for the range of zeros). FD must refer to a |