Add code to read configuration lines from a string as well as a file

svn:r2676
This commit is contained in:
Nick Mathewson
2004-11-04 22:29:45 +00:00
parent 831c988ea1
commit 9d604ec615
3 changed files with 128 additions and 2 deletions
+1
View File
@@ -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 */