Tor  0.4.7.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-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file escape.h
9  * \brief Header for escape.c
10  **/
11 
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) */
Utility macros to handle different features and behavior in different compilers.
char * esc_for_log(const char *string) ATTR_MALLOC
Definition: escape.c:30
char * esc_for_log_len(const char *chars, size_t n) ATTR_MALLOC
Definition: escape.c:110
const char * escaped(const char *string)
Definition: escape.c:126