escape.h 617 B

1234567891011121314151617181920212223
  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. /**
  7. * \file escape.h
  8. * \brief Header for escape.c
  9. **/
  10. #ifndef TOR_ESCAPE_H
  11. #define TOR_ESCAPE_H
  12. #include "orconfig.h"
  13. #include "lib/cc/compat_compiler.h"
  14. #include <stddef.h>
  15. char *esc_for_log(const char *string) ATTR_MALLOC;
  16. char *esc_for_log_len(const char *chars, size_t n) ATTR_MALLOC;
  17. const char *escaped(const char *string);
  18. #endif /* !defined(TOR_TORLOG_H) */