36 return tor_strdup(
"(null)");
39 for (cp = s; *cp; ++cp) {
50 if (TOR_ISPRINT(*cp) && ((uint8_t)*cp)<127)
60 result = outp = tor_malloc(len);
62 for (cp = s; *cp; ++cp) {
86 if (TOR_ISPRINT(*cp) && ((uint8_t)*cp)<127) {
112 char *
string = tor_strndup(chars, n);
115 return string_escaped;
128 static char *escaped_val_ = NULL;
Locale-independent character-type inspection (header)
const char * escaped(const char *s)
char * esc_for_log(const char *s)
char * esc_for_log_len(const char *chars, size_t n)
Headers for util_malloc.c.
int tor_snprintf(char *str, size_t size, const char *format,...)
Macros to manage assertions, fatal and non-fatal.