(ds_read_line): Add argument to limit the length of the line to be
[pspp-builds.git] / src / libpspp / str.h
index 50671d90c5133bc481ddad49ba400bbe8cde8b2c..0d48bd9bf02229a15b920e2c33280ffa326f62b8 100644 (file)
@@ -202,7 +202,7 @@ size_t ds_capacity (const struct string *);
 char *ds_cstr (const struct string *);
 
 /* File input. */
-bool ds_read_line (struct string *, FILE *);
+bool ds_read_line (struct string *, FILE *, size_t max_length);
 bool ds_read_config_line (struct string *, int *line_number, FILE *);
 bool ds_read_stream (struct string *, size_t size, size_t cnt, FILE *stream);