mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add code to read configuration lines from a string as well as a file
svn:r2676
This commit is contained in:
@@ -92,6 +92,7 @@ int write_bytes_to_file(const char *fname, const char *str, size_t len,
|
||||
int bin);
|
||||
char *read_file_to_str(const char *filename, int bin);
|
||||
int parse_line_from_file(char *line, size_t maxlen, FILE *f, char **key_out, char **value_out);
|
||||
char *parse_line_from_str(char *line, char **key_out, char **value_out);
|
||||
char *expand_filename(const char *filename);
|
||||
|
||||
/* Net helpers */
|
||||
|
||||
Reference in New Issue
Block a user