Jeroen Demeyer on Sat, 05 Sep 2015 11:24:22 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Reading a stream from a C string

Dear pari-dev,

the functions gp_read_str() on the one hand and gp_read_stream()/gp_read_file() on the other hand are not functionally identical: essentially, gp_read_str() reads the input as one line while the other allow multi-line input.

Now, I would also like a function which reads from a C string but which does treat newlines like gp_read_stream(). This function could be called gp_read_stream_from_str() or something. It would be not hard to implement, analogous to gp_read_stream().

What do you think?