escape.h 559 B

123456789101112131415161718
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef TOR_ESCAPE_H
  7. #define TOR_ESCAPE_H
  8. #include "orconfig.h"
  9. #include "lib/cc/compat_compiler.h"
  10. #include <stddef.h>
  11. char *esc_for_log(const char *string) ATTR_MALLOC;
  12. char *esc_for_log_len(const char *chars, size_t n) ATTR_MALLOC;
  13. const char *escaped(const char *string);
  14. #endif /* !defined(TOR_TORLOG_H) */