X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.h;h=8357732ccbaa35bb4ce33633b12b47f00ef5f6a0;hb=f1681b02fcc7f30319a7be2b9db199b7e5e4967e;hp=23966dfd0f4c90b37abd9ff5127b697554cffb16;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/libpspp/str.h b/src/libpspp/str.h index 23966dfd..8357732c 100644 --- a/src/libpspp/str.h +++ b/src/libpspp/str.h @@ -25,6 +25,7 @@ #include "compiler.h" #include "memcasecmp.h" +#include "xstrndup.h" #include "xvasprintf.h" /* Miscellaneous. */ @@ -201,7 +202,7 @@ char *ds_cstr (const struct string *); /* File input. */ bool ds_read_line (struct string *, FILE *); bool ds_read_config_line (struct string *, int *line_number, FILE *); -size_t ds_read_stream (struct string *, size_t size, size_t cnt, FILE *stream); +bool ds_read_stream (struct string *, size_t size, size_t cnt, FILE *stream); /* Append. */ void ds_put_char (struct string *, int ch);