tor  0.4.2.0-alpha-dev
escape.h
Go to the documentation of this file.
1 /* Copyright (c) 2001, Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_ESCAPE_H
13 #define TOR_ESCAPE_H
14 
15 #include "orconfig.h"
16 #include "lib/cc/compat_compiler.h"
17 #include <stddef.h>
18 
19 char *esc_for_log(const char *string) ATTR_MALLOC;
20 char *esc_for_log_len(const char *chars, size_t n) ATTR_MALLOC;
21 const char *escaped(const char *string);
22 
23 #endif /* !defined(TOR_ESCAPE_H) */
char * esc_for_log_len(const char *chars, size_t n) ATTR_MALLOC
Definition: escape.c:110
char * esc_for_log(const char *string) ATTR_MALLOC
Definition: escape.c:30
Utility macros to handle different features and behavior in different compilers.
const char * escaped(const char *string)
Definition: escape.c:126