Move confline.c to lib/encoding: it is about encoding key-value pairs

Also, move "unescape_string()" to encoding too, since it's about
encoding data as C strings.
This commit is contained in:
Nick Mathewson
2018-06-27 16:52:39 -04:00
parent 696f6f1569
commit b9b44bf000
8 changed files with 160 additions and 128 deletions
+13
View File
@@ -0,0 +1,13 @@
/* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2018, The Tor Project, Inc. */
/* See LICENSE for licensing information */
#ifndef TOR_CSTRING_H
#define TOR_CSTRING_H
#include <stddef.h>
const char *unescape_string(const char *s, char **result, size_t *size_out);
#endif /* !defined(TOR_CSTRING_H) */